Created
January 24, 2023 12:44
-
-
Save arriqaaq/6a0503b804ba48baf7fbf91e4c4926c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| config, err := clientcmd.BuildConfigFromFlags("", "~/.kube/config") | |
| if err != nil { | |
| log.Fatal(err) | |
| } | |
| clientset, err := kubernetes.NewForConfig(config) | |
| if err != nil { | |
| log.Fatal(err) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment