Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not return the cluster credentials when uploading a kubeconfig that already exists. Only return error message #29

Open
rajakshay opened this issue Sep 14, 2019 · 0 comments

Comments

@rajakshay
Copy link
Contributor

rajakshay commented Sep 14, 2019

If the kubeconfig already exists on hyperkube, and I try to re-upload it, it responds with 2 things:

  1. The kubeconfig
  2. The error message: {'message': 'Cluster cluster-name already exists'}

This is usually not an expected operation, but, I came across this while testing kubeconfig upload and download and re-trying those operation.

My problem is that I want to display this error message on failure, but, I do not want to display the kubeconfig. Also, the user asked to upload the kubeconfig, and not download it.

If I send the response to dev/null, I lose the error message as well. Would have been easier to handle this in code, but, unfortunately, I am using bash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant