kontena / mortar

The manifest shooter for Kubernetes
Apache License 2.0
145 stars 14 forks source link

KUBECONFIG environment variable is not correctly parsed #86

Open kke opened 5 years ago

kke commented 5 years ago

The KUBECONFIG env can contain references to multiple files as described here, separated by : like in $PATH and the multiple configs should be merged.

Mortar assumes there is only a single direct reference to a file : https://github.com/kontena/mortar/blob/master/lib/mortar/mixins/client_helper.rb#L14

Optimally this should be handled by k8s-client, there's already an issue about it: https://github.com/kontena/k8s-client/issues/68

jnummelin commented 5 years ago

We need to wait for 0.7.0 release of k8s-client