-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add support to check if the selected org is Tanzu Application platform enabled #731
Add support to check if the selected org is Tanzu Application platform enabled #731
Conversation
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.
a couple more minor things.
@prem two quick things:
|
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.
Nice. I like the use of the Central Config to allow to add or modify scopes whenever TAP evolves. The tricky thing will be to inform the relevant people (who?) that when a new scope is added or a scope renamed, the Central Config must be updated. But it is a quick fix if it is forgotten, and only a WARNING would show up.
Besides @vuil comments, LGTM.
6188660
to
25d0884
Compare
Thanks @marckhouzam. I was thinking that central configuration would check (periodically) and would be updated if it finds plugin inventory image is updated. Are you saying the user would see the warning for the time period between we post the updated inventory image(with new central config) and next automatic update that CLI would perform and download the latest central configuration? If so, yes I agree user would see this warning message till the next CLI update. |
b3d3b67
to
fbeb415
Compare
…m enabled - Added support to show warning to users if the CSP token received through login doesn't contain the necessary TAP scopes. The TAP scopes are fetched from the CLI central configuration file and can be modified without releasing new CLI version. - User can skip the TAP scopes validation on "tanzu" context using the environment variable "TANZU_CLI_SKIP_TAP_SCOPES_VALIDATION_ON_TANZU_CONTEXT" - Updated the local test central repo with updated central config file Signed-off-by: Prem Kumar Kalle <[email protected]>
fbeb415
to
ccad300
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, thanks for the updates.
Please mention the env var in the release notes section, and also add
doc-impact label.
…m enabled (vmware-tanzu#731) - Added support to show warning to users if the CSP token received through login doesn't contain the necessary TAP scopes. The TAP scopes are fetched from the CLI central configuration file and can be modified without releasing new CLI version. - User can skip the TAP scopes validation on "tanzu" context using the environment variable "TANZU_CLI_SKIP_TAP_SCOPES_VALIDATION_ON_TANZU_CONTEXT" - Updated the local test central repo with updated central config file Signed-off-by: Prem Kumar Kalle <[email protected]>
…m enabled (#731) - Added support to show warning to users if the CSP token received through login doesn't contain the necessary TAP scopes. The TAP scopes are fetched from the CLI central configuration file and can be modified without releasing new CLI version. - User can skip the TAP scopes validation on "tanzu" context using the environment variable "TANZU_CLI_SKIP_TAP_SCOPES_VALIDATION_ON_TANZU_CONTEXT" - Updated the local test central repo with updated central config file Signed-off-by: Prem Kumar Kalle <[email protected]>
What this PR does / why we need it
This PR adds support to check if the selected org is Tanzu Application Platform enabled
Summary of changes:
Which issue(s) this PR fixes
Fixes #
Describe testing done for PR
Used the local test registry to populate the central configuration and tested with organization with Tanzu Application Platform enabled. It was success
Used the local test registry to populate the central configuration and tested with organization WITHOUT Tanzu Application Platform enabled. It was success and the WARNING message is displayed stating the issue
Verifed the TAP scope validations are skipped (and the warning message is not shown) during login/context creation by exporting the environment variable
Release note
Additional information
Special notes for your reviewer
We require to update the central configuration with the TAP scopes and publish to plugin repositories.