-
Notifications
You must be signed in to change notification settings - Fork 23
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
Use internal Kubeconfig file instead of default kubeconfig to store kubecontext for TAP SaaS #747
Use internal Kubeconfig file instead of default kubeconfig to store kubecontext for TAP SaaS #747
Conversation
1fbfc52
to
9f78174
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.
nit: I would suggest describing under testing section
the effect of setting/not setting TANZU_CLI_SKIP_UPDATE_KUBECONFIG_ON_CONTEXT_USE
to the active context of the internal kubeconfig file.
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.
…store kubecontext for TAP SaaS Signed-off-by: Prem Kumar Kalle <[email protected]>
9f78174
to
241630a
Compare
Sure, will update the PR description |
What this PR does / why we need it
This PR made changes to switch to using the internal kubeconfig file ($HOME/.config/tanzu/kube/config kubectl') instead default kubeconfig file to store the kubecontext for TAP SaaS.
Which issue(s) this PR fixes
Fixes #
Describe testing done for PR
Logged in to TAP and able to verify the kubecontext is create in the internal kubeconfig file
(~/.kube-tanzu/config kubectl)
Now change the context to point to space and verified the kubecontext in the internal kubeconfig file is updated correctly to point to the space.
Now, verify that deleting the CLI context would delete the kubecontext from the internal Kubeconfig file.
TANZU_CLI_SKIP_UPDATE_KUBECONFIG_ON_CONTEXT_USE
totrue
Release note
Additional information
Special notes for your reviewer