Skip to content

Add preflight checks for existence of tanzu binary with tanzu context get-token command while generating kuebconfig for UCP context #506

@prkalle

Description

@prkalle

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

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions