fix: enable CSI addons on upgrade when appropriate #2347
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2347 +/- ##
==========================================
+ Coverage 71.9% 71.91% +0.01%
==========================================
Files 130 130
Lines 23395 23404 +9
==========================================
+ Hits 16823 16832 +9
Misses 5546 5546
Partials 1026 1026 |
o.KubernetesConfig.Addons[i] = defaultCloudNodeManagerAddonsConfig | ||
// Ensure cloud-node-manager and CSI components are enabled on appropriate upgrades | ||
if isUpgrade && to.Bool(o.KubernetesConfig.UseCloudControllerManager) && | ||
common.IsKubernetesVersionGe(o.OrchestratorVersion, "1.16.0") { |
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.
Let's add a UT that validates that a 1.15-->1.16 upgrade w/ all three of these addons disabled initially is statically overwritten to enabled=true (which is what I interpret this back-compat logic to be doing)
/hold Pending additional unit tests. |
/hold cancel |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jackfrancis, mboersma The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* fix: enable CSI addons on upgrade when appropriate * test: add coverage for 1.16 upgrade w/ UseCloudControllerManager
Reason for Change:
Follows up on #2345 to fix the enabling csi-azuredisk-* and csi-azurefile-* components on upgrade. Also addresses a review comment on the previous PR.
Issue Fixed:
Refs #2337
Requirements:
Notes: