[Chectl] support exported kubeconfigs when installing #15741
Labels
area/chectl
Issues related to chectl, the CLI of Che
kind/enhancement
A feature request - must adhere to the feature request template.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
severity/P1
Has a major impact to usage or development of the system.
status/info-needed
More information is needed before the issue can move into the “analyzing” state for engineering.
Is your enhancement related to a problem? Please describe.
I'm currently trying to run Che on IBM Kubernetes Service (IKS). When you authenticate against the cluster, IKS gives you the following command to run:
When that command is run, your current terminal session will then be configured against that cluster.
An entry under
~/.kube/config
is not created however when you configure the cluster.When I go to run
chectl server:start --platform=k8s --installer=operator --domain=<domain>
, the command fails with the following error:This is because Che doesn't see the exported Kube config in
$KUBECONFIG
and is trying to install into a different cluster (whose context has long since expired).Describe the solution you'd like
It would be nice if Chectl supported scenarios where the kube config was exported under the
KUBECONFIG
environment variable. This would allow Chectl to work against Kubernetes platforms like IKS that only provide the user with a Kube config file to export in their terminal. It would also be nice, as it could also mean users wouldn't have to reconfigure their default Kubernetes context if they wanted to quickly install Che on another cluster.Describe alternatives you've considered
Manually creating the kube config entry in
~/.kube/config
works, but it's a hassle and the certificates for the config expire every 12 or so hours, so I have re-do that step whenever I reconfigure against the cluster.Manually installing the Che operator from operatorhub works fine too.
The text was updated successfully, but these errors were encountered: