-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🐛 clusterctl: fix target namespace in v1beta1 CRDs and WebhookConfigurations #5096
🐛 clusterctl: fix target namespace in v1beta1 CRDs and WebhookConfigurations #5096
Conversation
@sbueringer: GitHub didn't allow me to request PR reviews from the following users: asalkeld. Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs. 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. |
…ions Signed-off-by: Stefan Büringer [email protected]
622d017
to
68ef481
Compare
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
/assign @fabriziopandini
flakes |
lgtm |
Kind of :). If fix target namespace doesn't fail anymore, the code execution continues and in case of usage with a v1alpha3 provider eventually returns e.g. the I mostly added this comment in the description because there was a lot of confusion in Slack because a few folks tried to use clusterctl v0.4.x with v1alpha3 providers and got the fix target namespace error instead of the compatibility error. |
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.
@sbueringer thanks for picking up this work!
/lgtm
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
[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
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Stefan Büringer [email protected]
What this PR does / why we need it:
Currently, clusterctl only overwrites the target namespace of v1 CRDs and WebhookConfigurations. This PR adjusts clusterctl to also handle the v1beta1 versions.
Note: this has to be supported because v1alpha4 providers are not required to use the v1 versions of those resources.
After this fix clusterctl also returns better errors when used together with v1alpha3 provider versions, i.e.
instead of:
xref: https://kubernetes.slack.com/archives/C8TSNPY4T/p1629101098162100
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #