Closed prkalle closed 4 months ago
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.
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