-
Notifications
You must be signed in to change notification settings - Fork 1.4k
KCP etcd upgrade: handle conditional update & add tests #2581
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
KCP etcd upgrade: handle conditional update & add tests #2581
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vincepri The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Tested this on a running cluster got the expected result |
|
/test pull-cluster-api-test |
| if err != nil { | ||
| return false, errors.Wrap(err, "unable to retrieve current image repository from kubeadm configmap") | ||
| } | ||
| if currentImageTag != imageTag { |
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.
Do we need to do a semver based check or are we just going to set it to whatever is passed in? Asking because want to know what to do for CoreDNS imageTag? 🙂
I thought we discussed something on the lines, update if it is a semver patch update.
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.
Unless that check is happening elsewhere?
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.
that check should happen in the validating webhook so capi can reject the change as quickly as possible and not end up in an error loop that requires human intervention to fix
1aa7994 to
60f82b0
Compare
|
@wfernandes @chuckha fixed all the comments, apart from the verification one, which I agree it should probably go in a validation webhook. I think for now it's probably fine do allow any kind of changes to kubeadm, we can restrict it later on |
60f82b0 to
1641e54
Compare
Signed-off-by: Vince Prignano <[email protected]>
1641e54 to
44bfb43
Compare
|
/lgtm |
Signed-off-by: Vince Prignano [email protected]
What this PR does / why we need it:
Follow-up to #2579
UpdateEtcdMeta./assign @chuckha @ncdc
/cc @wfernandes
/milestone v0.3.0