what
geodesic.kube-ps1.sh turns kube-ps1 on and off automatically depending on kubecfg existence
- but $KUBECONFIG isn't a file, it's a $PATH-like envvar (see K8s docs)
why
- Geodesic shouldn't turn kube-ps1 off if $KUBECONFIG or the cached envvar isn't an existing file
Not sure exactly how to fix this - should probably use kubectl config instead though, that parses $KUBECONFIG and merges configs and such.
This came up because I was extending the $KUBECONFIG var to enable aws-iam-authenticator integration - writing to a file in /dev while building the container doesn't work because it's temporary.
what
geodesic.kube-ps1.shturns kube-ps1 on and off automatically depending on kubecfg existencewhy
Not sure exactly how to fix this - should probably use
kubectl configinstead though, that parses $KUBECONFIG and merges configs and such.This came up because I was extending the $KUBECONFIG var to enable aws-iam-authenticator integration - writing to a file in
/devwhile building the container doesn't work because it's temporary.