-
Notifications
You must be signed in to change notification settings - Fork 287
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 Fixes logic to fetch credentials of remote cluster #1515
Conversation
c5304dc
to
12306fa
Compare
/retest |
/retest |
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
/assign @srm09
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: yastij 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 |
/retest |
12306fa
to
dff8e37
Compare
dff8e37
to
15ab4c6
Compare
/retitle Fixes logic to fetch credentials of remote cluster |
/retitle 馃悰Fixes logic to fetch credentials of remote cluster |
/retitle 馃悰 Fixes logic to fetch credentials of remote cluster |
The provider service account and service discovery controllers had an inherent assumption that the names of the Cluster and VSphereCluster object is the same. Hence the logic to fetch the secret containing the kubeconfig of the guest cluster was leveraging the name of the VSphereCluster object. With the advent of ClusterClass, the name of the generated VSphereCluster object is different than the name of the Cluster object. This patch adds the logic to get the owner Cluster object from the VSphereCluster object and use that to generate the name of the secret that contains the kubeconfig. It also updates the test logic by passing different name to the Cluster object. Signed-off-by: Sagar Muchhal <muchhals@vmware.com>
15ab4c6
to
46ca481
Compare
/lgtm |
@aartij17: you cannot LGTM your own PR. 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. |
/lgtm |
What this PR does / why we need it:
Cluster
andVSphereCluster
object is the same which has changed with the advent ofClusterClass
.Which issue(s) this PR fixes :
Fixes #1514
Special notes for your reviewer:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
Release note: