Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default kubeconfig for habitat-operator #328

Open
surajssd opened this issue Aug 3, 2018 · 2 comments
Open

default kubeconfig for habitat-operator #328

surajssd opened this issue Aug 3, 2018 · 2 comments

Comments

@surajssd
Copy link
Contributor

surajssd commented Aug 3, 2018

If no --kubeconfig flag is provided default to the kubeconfig in $HOME/.kube/config.

@krnowak
Copy link
Contributor

krnowak commented Aug 7, 2018

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.

@surajssd
Copy link
Contributor Author

surajssd commented Aug 7, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants