-
Notifications
You must be signed in to change notification settings - Fork 58
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
Allow creating both mgmt/svc cluster idempotently #115
Conversation
LOCATION?=eastus | ||
RESOURCEGROUP=aro-hcp-${AKSCONFIG}-$(USER) | ||
DEPLOYMENTNAME=$(RESOURCEGROUP) |
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.
DEPLOYMENTNAME
needed to be unique between the mgmt/svc cluster
@@ -1,5 +1,5 @@ | |||
// Constants | |||
param aksClusterName string = 'aro-hcp-cluster-001' | |||
param aksClusterName string = take('aro-hcp-${clusterType}-${uniqueString(clusterType)}', 63) |
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.
This allows for a unique cluster name between mgmt/svc clusters
@@ -125,7 +138,7 @@ resource aks_keyvault_crypto_user 'Microsoft.Authorization/roleAssignments@2022- | |||
} | |||
} | |||
|
|||
resource vnet 'Microsoft.Network/virtualNetworks@2023-09-01' = { | |||
resource vnet 'Microsoft.Network/virtualNetworks@2023-11-01' = { |
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.
This allows vnet/subnet to behave idempotently now from Azure/azure-quickstart-templates#2786
rotationPolicy: { | ||
lifetimeActions: [ | ||
{ | ||
action: { | ||
type: 'notify' | ||
} | ||
trigger: { | ||
timeBeforeExpiry: 'P30D' | ||
} | ||
} | ||
] | ||
} |
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.
Default values that are being imported into the module
Signed-off-by: Michael Shen <[email protected]>
What this PR does
Before this PR:
make mgmt-cluster
/make svc-cluster
After this PR:
make mgmt-cluster
/make svc-cluster
, making iterating on changes easier.Applying the mgmt-cluster/svc-cluster targets again now results in:
Jira: ARO-6158