databricks / click

The "Command Line Interactive Controller for Kubernetes"
Apache License 2.0
1.49k stars 84 forks source link

KUBECONFIG merges are not working #73

Open fsniper opened 6 years ago

fsniper commented 6 years ago

kubectl has a feature to merge kubeconfigs on the fly via a KUBECONFIG env variable. This is not working with click.

How to reproduce:

$ export KUBECONFIG=cluster-merge:cluster-config:cluster2-config
$ kubectl config get-contexts
CURRENT NAME CLUSTER AUTHINFO NAMESPACE
* cluster1 cluster1 cluster1
cluster2 cluster2 cluster2
$ click
Could not open config file at 'xxxx/.kube/click.config': No such file or directory (os error 2). Using default values
Could not load kubernetes config: 'cluster-merge:cluster-config:cluster2-config'. Cannot continue.  Error was: entity not found
kirikaza commented 5 years ago

Looks like a duplicate of #49