Describe the feature request
tanzu CLI generates the kubeconfig with Exec plugin for UCP context in order to fetch the CSP token dynamically. However this kubeconfig expects the tanzu binary with the tanzu context get-token command support to be present in user's PATH.
So, CLI while generating the Kubeconfig for UCP context, it should consider adding a preflight check (may be checking for tanzu context get-token command) before assigning this command as Exec plugin in the kubeconfig
More details are mentioned here
Describe alternative(s) you've considered
Additional context
Describe the feature request
tanzu CLI generates the kubeconfig with Exec plugin for UCP context in order to fetch the CSP token dynamically. However this kubeconfig expects the
tanzubinary with thetanzu context get-tokencommand support to be present in user's PATH.So, CLI while generating the Kubeconfig for UCP context, it should consider adding a preflight check (may be checking for
tanzu context get-tokencommand) before assigning this command as Exec plugin in the kubeconfigMore details are mentioned here
Describe alternative(s) you've considered
Additional context