Error messages are not clear when chectl failed to start che-server #14665
Labels
area/chectl
Issues related to chectl, the CLI of Che
kind/enhancement
A feature request - must adhere to the feature request template.
severity/P1
Has a major impact to usage or development of the system.
Milestone
Is your enhancement related to a problem? Please describe.
Errors messages should be clear.
I faced the following cases:
✖ Verify Kubernetes API → Failed to connect to Kubernetes API. Failed to get current Kubernetes cluster: returned null 👀 Looking for an already existing Che instance › Error: Failed to connect to Kubernetes API. Failed to get current Kubernetes cluster: returned null
$ chectl server:start --platform=minishift --installer=operator --k8spodreadytimeout=500000 ✖ Verify Kubernetes API → Failed to connect to Kubernetes API. [object Object] 👀 Looking for an already existing Che instance › Error: Failed to connect to Kubernetes API. [object Object]
So, chectl requires the current context to be set, and the current user should have cluster admin rights. And there is no clue about it in error messages.
The text was updated successfully, but these errors were encountered: