Skip to content

Power VS GetSession persistant variables#5319

Closed
23TNC wants to merge 2 commits intoopenshift:masterfrom
23TNC:powervs-session-changes
Closed

Power VS GetSession persistant variables#5319
23TNC wants to merge 2 commits intoopenshift:masterfrom
23TNC:powervs-session-changes

Conversation

@23TNC
Copy link
Copy Markdown
Contributor

@23TNC 23TNC commented Oct 20, 2021

Depends on PR #5293
This changes GetSession to read variables from disk, and save variable to disk. This is important as we are able to save the variables to disk after create install-config and read them back in later in the process. This will prevent the user from being prompted two or more times for the same information.

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Oct 20, 2021

Hi @23TNC. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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.

@openshift-ci openshift-ci Bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Oct 20, 2021
@openshift-ci openshift-ci Bot requested review from e-tienne and jhixson74 October 20, 2021 18:19
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Oct 20, 2021

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign staebler after the PR has been reviewed.
You can assign the PR to them by writing /assign @staebler in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Copy Markdown
Contributor

@clnperez clnperez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some small comments and we can test this.

also it'll require a rebase after the other PRs are merged but we can figure that out. too many moving parts for the time being.

1) require the user has done this already and pull from the file
2) ask the user to paste in their IAMToken.
3) let the password env var be the IAMToken? (Going with this atm since it's how I started)
4) put it into Platform {userid: , iamtoken: , ...}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we delete this whole block? this is all pretty outdated brainstorming from months ago :D
and we should document that users may optionally do ibmcloud iam api-key-create test --file ~/.bluemix/apikey_test.json --output json to get that file there.


// Second grab variables from files

// .bluemix/config.json doesn't seem to hold anything useful but other files might
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you run ibmcloud iam api-key-create test --file ~/.bluemix/apikey_test.json --output json ?

// region can be found in this file, but may not be the region the user would like to use
// zone cannot be found in this file
// username cannot be found in this file
// apikey cannot be found in this file, iamtoken is not the apikey we need
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also let's clean up these comments for the pr. nice to have to kick off these discussions to start

{
Prompt: &survey.Password{
Message: "IBM Cloud API Key",
Help: "The api key installation.\nhttps://cloud.ibm.com/iam/apikeys",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

capitalize API in the help text

@clnperez
Copy link
Copy Markdown
Contributor

clnperez commented Jan 7, 2022

@cklokman can you close this? I'm closing my open outdated ones.

@23TNC 23TNC closed this Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants