-
Notifications
You must be signed in to change notification settings - Fork 519
fix: filter out KeyVault resources during upgrade #4072
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4072 +/- ##
==========================================
- Coverage 73.19% 73.18% -0.02%
==========================================
Files 135 135
Lines 20555 20576 +21
==========================================
+ Hits 15046 15058 +12
- Misses 4539 4545 +6
- Partials 970 973 +3
Continue to review full report at Codecov.
|
bf5b89b
to
7b71edf
Compare
7411c6c
to
1883b62
Compare
I would just add UTs to avoid future regressions, the template manipulation code is not a pleasant read. I would try to call Then, |
@@ -2298,7 +2298,8 @@ | |||
"name": "vmLoopNode" | |||
}, | |||
"dependsOn": [ | |||
"[concat('Microsoft.Compute/virtualMachines/', variables('masterVMNamePrefix'), copyIndex(variables('masterOffset')))]" | |||
"[concat('Microsoft.Compute/virtualMachines/', variables('masterVMNamePrefix'), copyIndex(variables('masterOffset')))]", | |||
"[concat('Microsoft.KeyVault/vaults/', variables('clusterKeyVaultName'))]" |
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 demonstrates that this dependency will be removed if it's found (k8s_slb_template.json
is the input file before we do the translation/filtering)
/lgtm |
Reason for Change:
This PR addresses edge case behavior in
aks-engine upgrade
when more than one master node andenableEncryptionWithExternalKms
is true.Issue Fixed:
Fixes #4071
Credit Where Due:
Does this change contain code from or inspired by another project?
If "Yes," did you notify that project's maintainers and provide attribution?
Requirements:
Notes: