Chectl should try to detect installed namespace for appropriate commands #21311
Labels
area/chectl
Issues related to chectl, the CLI of Che
kind/enhancement
A feature request - must adhere to the feature request template.
severity/P2
Has a minor but important impact to the usage or development of the system.
Milestone
Is your enhancement related to a problem? Please describe
Some commands, e.g.
chectl server:logs
require the-n, --chenamespace
parameter if Che is installed in a non-default namespace. However, in many cases, it is possible to discover the installed namespace via the Kubernetes API (e.g. by listing allCheClusters
).Describe the solution you'd like
Since commands like
chectl server:logs
do not modify any resources on the cluster, they should automatically detect the namespace and report a useful message if this is not possible.Describe alternatives you've considered
The error message should suggest using the
-n
parameter if it cannot find the installation in the default namespace.Additional context
No response
The text was updated successfully, but these errors were encountered: