Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
anjmao authored Aug 29, 2022
1 parent acc14d4 commit d8deba7
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@ import (
"fmt"
client "github.com/castai/k8s-client-go"
)

func main() {
kc, err := client.NewInCluster()
if err != nil {
log.Fatal(err)
}
ctx := context.Backgroud()
kc, err := client.NewInCluster()
if err != nil {
log.Fatal(err)
}
ctx := context.Backgroud()

endpointsAPI := client.NewObjectAPI[corev1.Endpoints](kc)
endpointsAPI := client.NewObjectAPI[corev1.Endpoints](kc)

endpoints, err := endpointsAPI.Get(ctx, "kube-system", "kubelet", metav1.GetOptions{})
if err != nil {
Expand Down

0 comments on commit d8deba7

Please sign in to comment.