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 vsphere creds for CP and CSI #6058
Conversation
Codecov Report
@@ Coverage Diff @@
## main #6058 +/- ##
==========================================
- Coverage 74.85% 74.83% -0.03%
==========================================
Files 447 447
Lines 36887 36905 +18
==========================================
+ Hits 27611 27617 +6
- Misses 7721 7729 +8
- Partials 1555 1559 +4
|
|
||
if err := os.Setenv(config.EksavSphereCSIPasswordKey, string(vsphereCSIPassword)); err != nil { | ||
return fmt.Errorf("failed setting env %s: %v", config.EksavSphereCSIPasswordKey, err) | ||
} |
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.
nit: you can probably simplify this code by having a mapping between key in the secret and env var and just loop over them
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mitalipaygude 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 |
/cherrypick release-0.16 |
@mitalipaygude: new pull request created: #6070 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. |
Issue #, if available:
Description of changes:
Set vsphere creds for CP and CSI. These weren't being set in the reconciler previously.
The data in the secret looks like this
Testing (if applicable):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.