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

use default clientcmd loading behavior #15

Merged
merged 6 commits into from
Apr 23, 2022
Merged

Conversation

coopernetes
Copy link
Owner

@coopernetes coopernetes commented Apr 23, 2022

Closes #14, adds support for default client config loading rules behaviour (KUBECONFIG env var, $HOME/.kube/config file) f
https://pkg.go.dev/k8s.io/client-go@v0.23.3/tools/clientcmd

remove deprecated function usages

cleanup cli flags, golint fixes

Tom Cooper added 6 commits April 23, 2022 15:01
* use default loading rules in clientcmd
* if -kubeconfig flag is set, override default loading (old
  behaviour)
* use non-deprecated discoveryclient and resource list func
* use Homedir() from client-go/util
* cleanup flag declarations
* basic bash test
* mod tidy
@coopernetes coopernetes merged commit f79eaf9 into master Apr 23, 2022
@coopernetes coopernetes deleted the feat/def-kubecfg-rules branch April 23, 2022 20:16
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

Successfully merging this pull request may close these issues.

Respect KUBECONFIG variable
1 participant