-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ees 4807 small tweaks after merge #4725
Conversation
0441b9d
to
10a342c
Compare
082d603
to
027c418
Compare
5c1fff4
to
d016e5d
Compare
26bdbfe
to
ed004c8
Compare
…onditionally including stages in pipeline based on variable values, as this turned out to not be working correctly
…y if the user-assigned Managed Identity has been created yet
… allow the ARM template to control the VNet and all subnets, and have the Bicep template look them up
…for provision by the VNet. Updating Container App Environment subnet to allow greater IP range. Switching Container App Environment to be internal by default to prevent the creaton of an unprotected Public IP Address.
…ntainer Apps initial migration
96f76d0
to
7cb0043
Compare
…rmissions for future tables created in the public_data db to various Managed Identity users
7cb0043
to
254d5fc
Compare
…eploy with a single "deployContainerApp" flag instead
…eploy with a single "deployContainerApp" flag instead
19375c1
to
669a617
Compare
…ss PSQL. Added flag to avoid unnecessary PSQL deploys if possible. Added more connection strings to Key Vault and amended KV secret names to reflect existing naming conventions.
9abf33a
to
cb5c52f
Compare
b46e2e1
to
3d299d8
Compare
1507d1a
to
1d36f57
Compare
…prior to merging back into dev. Removing references to EES-5052 from Bicep files as we will be replacing VNet integration with Private Endpoint as part of the EES-5052 work.
24e8fa3
to
3356200
Compare
// Note that this has been added temporarily to avoid 10+ minute deploys where it appears that PSQL will redeploy even if no changes exist in | ||
// this deploy from the previous one. | ||
@description('Does the PostgreSQL Flexible Server require any updates? False by default to avoid unnecessarily lengthy deploys.') | ||
param updatePsqlFlexibleServer bool = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, we could create a new ticket to investigate this and tidy it up, or create an overarching tidy-up ticket to begin listing any stuff like this that still needs looking at.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've created https://dfedigital.atlassian.net/browse/EES-5128 to cover this, and added some TODOs to the codebase to reference it.
resource apiContainerAppManagedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' existing = if (deployContainerApp) { | ||
name: apiContainerAppManagedIdentityName | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be inside the containerApp module rather than in main?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've created https://dfedigital.atlassian.net/browse/EES-5128 to cover this, and added a TODO to the codebase to reference it.
name: 'ParquetFiles__BasePath' | ||
value: 'data/public-api-parquet' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need a new ticket creating on configuring this Azure File Share at some point, in order to mount the data directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've created https://dfedigital.atlassian.net/browse/EES-5127 to cover this.
dependsOn: [ | ||
postgreSqlServerModule | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering if this is still required? If deployContainerApp is true and updatePsqlFlexibleServer is false would this work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, so this is in the situation where updatePsqlFlexibleServer
is false. In that case, it's dependent on postgreSqlServerModule
being complete before continuing - we have to be explicit about the dependency because we're not using any actual values from the postgreSqlServerModule
output in this definition.
If updatePsqlFlexibleServer
is true, postgreSqlServerModule
will be undefined, and any undefined references in the dependsOn
array get ignored, so this module can just deploy immediately.
This PR:
Optimisation flag for PSQL
I've added a flag for effectively skipping the PSQL stage of the deploy, as currently it seems that PSQL attempts to update every single time that we do a Public API Inf deploy, which leads to at least 5 minutes extra deploy time and at worst about 13 minutes extra. We need to work out what is causing it to redeploy each time even when nothing has changed. It may be down to the child "databases" and "firewallRules" resources, which could potentially be solved by moving them out into top-level resources in the postgres module rather than as child resources, but haven't investigated yet.