-
Notifications
You must be signed in to change notification settings - Fork 153
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
addons controller: hetzner CSI: redeploy CSIDriver to allow upgrade from v2.22 to v2.23 #12432
addons controller: hetzner CSI: redeploy CSIDriver to allow upgrade from v2.22 to v2.23 #12432
Conversation
Skipping CI for Draft Pull Request. |
/cherry-pick release/v2.23 |
@wozniakjan: once the present PR merges, I will cherry-pick it on top of release/v2.23 in a new PR and assign it to you. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
pkg/controller/seed-controller-manager/addon/addon_controller.go
Outdated
Show resolved
Hide resolved
379a161
to
eb46bbe
Compare
/test all |
ec536cd
to
281d2bb
Compare
@@ -532,6 +562,14 @@ func (r *Reconciler) ensureIsInstalled(ctx context.Context, log *zap.SugaredLogg | |||
|
|||
cmdLog := log.With("cmd", strings.Join(cmd.Args, " ")) | |||
|
|||
if addon.Name == "csi" && cluster.Spec.Cloud.Hetzner != nil && cluster.Spec.Features[kubermaticv1.ClusterFeatureExternalCloudProvider] { |
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.
otherwise the addon will not deploy CSIDriver
{{ if .Cluster.Features.Has "externalCloudProvider" }} |
following log line appears exactly once
|
…rom v2.22 to v2.23 fixes: kubermatic#12429 Signed-off-by: Jan Wozniak <wozniak.jan@gmail.com>
281d2bb
to
136a8e7
Compare
Signed-off-by: Jan Wozniak <wozniak.jan@gmail.com>
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.
/approve
LGTM label has been added. Git tree hash: e051dd434cba698c59c5d4da6cac7da4e80ea934
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: embik, wozniakjan 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 |
@wozniakjan: new pull request created: #12439 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What this PR does / why we need it:
Before reconciling hetzner CSI addon, delete the
CSIDriver
resource if it has a mismatch infsGroupPolicy
, so the addon can be applied. Between KKP v2.22 and v2.23 #11968 introduced a change to an immutable fieldfsGroupPolicy
, the upstream recommends recreating theCSIDriver
:https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/1682-csi-driver-skip-permission#risks-and-mitigations
Which issue(s) this PR fixes:
fixes: #12429
What type of PR is this?
/kind bug
Special notes for your reviewer:
Should we add docs too to instruct users for the manual remediation of deleting the
CSIDriver
resource?Does this PR introduce a user-facing change? Then add your Release Note here:
Documentation: