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
Bug 1990975: Enhance mechanism of reading ibm cloud apikey #365
Conversation
/cc @BobbyRadford |
@mkumatag: GitHub didn't allow me to request PR reviews from the following users: BobbyRadford. Note that only openshift 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. |
Codecov Report
@@ Coverage Diff @@
## master #365 +/- ##
==========================================
+ Coverage 46.00% 46.03% +0.03%
==========================================
Files 74 74
Lines 7750 7755 +5
==========================================
+ Hits 3565 3570 +5
Misses 3691 3691
Partials 494 494
|
/test e2e-aws |
/retest |
// APIKeyEnvVar is the environment variable name containing an IBM Cloud API key | ||
const APIKeyEnvVar = "IC_API_KEY" | ||
// APIKeyEnvVars is the environment variable names containing an IBM Cloud API key | ||
var APIKeyEnvVars = []string{"IC_API_KEY", "IBMCLOUD_API_KEY", "BM_API_KEY", "BLUEMIX_API_KEY"} |
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.
Is there any kind of precedence criteria here? How ibm cloud cli handles it when all of these environment variables are set?
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.
go-client follows a same approach for reading the token here -
https://github.com/IBM-Cloud/bluemix-go/blob/56edc36e39e52b243c4fb23a2cc63d8296d7d796/session/session.go#L41
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.
@mkumatag lmk what you come up with here. i'm guessing we should be consistent with the installer.
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.
if it is missing, we can enhance the code in the installer as well,
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 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akhil-rane, joelddiaz, mkumatag 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 |
@akhil-rane @joelddiaz it says missing bz label, not sure if there is a way to get rid of this condition! |
I am creating a BZ and linking this PR |
@mkumatag: This pull request references Bugzilla bug 1990975, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
Requesting review from QA contact: 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. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required |
/test e2e-upgrade |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest-required Please review the full test history for this PR and help us cut down flakes. |
@mkumatag: All pull requests linked via external trackers have merged: Bugzilla bug 1990975 has been moved to the MODIFIED state. 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. |
Have seen users to use following set of environments to pass the APIKEY, so this PR is to support all those possible environment varaibles.