-
Notifications
You must be signed in to change notification settings - Fork 192
Use CAPV util function to retrieve VSphere cluster credentials. #3391
Use CAPV util function to retrieve VSphere cluster credentials. #3391
Conversation
77d4711
to
dd76d2c
Compare
1d8b269
to
78f3c96
Compare
Codecov Report
@@ Coverage Diff @@
## main #3391 +/- ##
==========================================
+ Coverage 53.12% 53.97% +0.85%
==========================================
Files 103 91 -12
Lines 10419 10006 -413
==========================================
- Hits 5535 5401 -134
+ Misses 4429 4171 -258
+ Partials 455 434 -21
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
78f3c96
to
4366568
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
4a3767b
to
f315547
Compare
Split the testutil changes into a separate commit, otherwise lgtm |
f315547
to
e30e6c4
Compare
3eaabbb
to
219b535
Compare
9f46115
to
59a8953
Compare
… with CAPV util function.
59a8953
to
f783cbc
Compare
@HanFa Will a resource of kind VSphereClusterIdentity or an identityRef on a VsphereCluster exist for sure in a cluster? How credentials would be fetched if they don’t? |
Hi @maralavi , not necessarily. If the VSphereClusterIdentity doesn't exist, the secretRef type should be |
Thanks for the clarification @HanFa . Can we expect that |
yes, that's exactly the case |
Changes look good to me, thanks for the changes. Lets wait for the test pipeline pass before merging. |
What this PR does / why we need it
To retrieve the credential from a VSphereCluster, instead of just getting it from the associated secret object, we use CAPV util function to cover the case of multi-tenancy.
Which issue(s) this PR fixes
Fixes #
#3392
Describe testing done for PR
Addon Controller integration test with
KUBEBUILDER_ASSETS=/Users/hanfa/workspace/tanzu-framework-HanFa/hack/tools/bin/kubebuilder/bin go test ./controllers -v
Manually testing for non-paravirt uTKG
Release note
Additional information
Special notes for your reviewer