Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Last active July 3, 2020 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/774e111162e6239fa80a7d0a1753b5c1 to your computer and use it in GitHub Desktop.
Save velotiotech/774e111162e6239fa80a7d0a1753b5c1 to your computer and use it in GitHub Desktop.
kubeconfig := filepath.Join(
os.Getenv("HOME"), ".kube", "config",
)
config, err := clientcmd.BuildConfigFromFlags("", kubeconfig)
if err != nil {
log.Fatal(err)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment