Use a client to verify connectivity before applying a kubeconfig and setting it as the current context. Will not change the current context on a failure.
I love what you've done! I have one nit I don't feel strongly about (name of the function), and one suggestion: I'm not sure you want the last check you've got. I'm open to discussion about it though.
Description of your changes
Use a client to verify connectivity before applying a kubeconfig and setting it as the current context. Will not change the current context on a failure.
Fixes #323
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR, as appropriate.How has this code been tested
Bad token:
Good token, non-existent target:
Oops, wrong Upbound organization:
That's the one!