-
Notifications
You must be signed in to change notification settings - Fork 431
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
Set cluster name label for pre-existing kubeconfig #4833
Set cluster name label for pre-existing kubeconfig #4833
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4833 +/- ##
==========================================
- Coverage 62.62% 62.00% -0.62%
==========================================
Files 198 201 +3
Lines 16285 16862 +577
==========================================
+ Hits 10198 10455 +257
- Misses 5341 5624 +283
- Partials 746 783 +37 ☔ View full report in Codecov by Sentry. |
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
It would be nice to cover this with a unit test, but I see there aren't any around Reconcile
or reconcileKubeconfig
yet. So that's probably too much to ask for this bug fix.
Thanks for fixing this @willie-yao!
LGTM label has been added. Git tree hash: f4336d27f3e9b7e28ed8afe42711456917398031
|
/assign @nojnhuh |
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
/approve
Thanks Willie!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nojnhuh 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 |
/cherry-pick release-1.14 |
/cherry-pick release-1.13 |
@willie-yao: new pull request created: #4846 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-sigs/prow repository. |
@willie-yao: new pull request created: #4847 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-sigs/prow repository. |
/cherry-pick release-1.15 |
@willie-yao: new pull request created: #4848 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-sigs/prow repository. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
This PR adds a fix for clusters upgrading from before CAPI v1.5 to a newer version. v1.5 introduced a new requirement for the ClusterNameLabel to be added to kubeconfig secrets: https://cluster-api.sigs.k8s.io/developer/providers/migrations/v1.4-to-v1.5#other
CAPZ handles this for newly created kubeconfigs, but not pre-existing ones. This PR handles that case.
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 #4738
Special notes for your reviewer:
TODOs:
Release note: