[Housekeeping] Add precheck in demo and sandox commands for local kubeconfig #2943
Labels
flytectl
Issues related to flytectl -Flytes CLI
hacktoberfest
housekeeping
Issues that help maintain flyte and keep it tech-debt free
Milestone
Describe the issue
sandbox and demo clusters copies the kubecontext to connect to the cluster into the local machines default kubecontext and switches over to it.
In case the kubecontext doesn't exist locally then the command fails at the this step which is after sandbox is successfully up
Add this precheck for demo and sandbox both
https://github.com/flyteorg/flytectl/blob/master/cmd/demo/start.go#L79
https://github.com/flyteorg/flytectl/blob/master/cmd/sandbox/start.go#L83
What if we do not do this?
User experience is bad as it will always fail for him
Related component(s)
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: