Open surajssd opened 6 years ago
Hm, not sure about it. If no --kubeconfig
is passed then we are trying to use some special in-cluster config. See https://github.com/habitat-sh/habitat-operator/blob/master/vendor/k8s.io/client-go/tools/clientcmd/client_config.go#L526-L543.
such a fallback logic can be implemented, since we intend to use this as a cmd line and incluster both. Like first look at the flag, if not provided see if $HOME/.kube/config
if not then create inclusterconfig.
If no
--kubeconfig
flag is provided default to the kubeconfig in$HOME/.kube/config
.