upbound / up

The @upbound CLI
Apache License 2.0
52 stars 41 forks source link

Get kubeconfig command does not fail and it is misleading #323

Closed muvaf closed 1 year ago

muvaf commented 1 year ago

What problem are you facing?

When you run up ctp kubeconfig get with wrong token, account or any other argument, it does not fail as long as it's able to construct kubeconfig YAML. Then user gets error in kubectl when they try to access MCP like api is not found which is misleading.

How could Upbound help solve your problem?

up ctp kubeconfig get should check whether the kubeconfig it produces actually works before returning to user.