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

Error whitout user meaning when run kubectl kudo get instances before init #1056

Closed
camilamacedo86 opened this issue Nov 15, 2019 · 2 comments · Fixed by #1113
Closed

Error whitout user meaning when run kubectl kudo get instances before init #1056

camilamacedo86 opened this issue Nov 15, 2019 · 2 comments · Fixed by #1113

Comments

@camilamacedo86
Copy link

What happened:
After install, I run kubectl kudo get instances

$ kubectl kudo get instances
Error: creating kudo client: operators: customresourcedefinitions.apiextensions.k8s.io "operators.kudo.dev" not found

What you expected to happen:
Not show an error without user meaning. It could provide a friendly message telling that I should run kubectl kudo init in order to have instances.

How to reproduce it (as minimally and precisely as possible):

  • New installation, and then run the command.
@alenkacz
Copy link
Contributor

What I see as a solution here is to do some validation before actually creating a client and make sure that the cluster is initialized. Potentially we would want to have that check before many other commands because most of them expect the server to be initialized.

@kensipe
Copy link
Member

kensipe commented Nov 20, 2019

great feedback!! thanks @camilamacedo86 !

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

Successfully merging a pull request may close this issue.

4 participants