From e1d8864d5254825aa358b7daf60505d0f8ae69d8 Mon Sep 17 00:00:00 2001 From: Aditya Mukerjee Date: Mon, 27 Nov 2017 19:14:36 -0500 Subject: [PATCH] Explicitly version Clientset in example (#6446) Core() is deprecated in favor of CoreV1 --- docs/tasks/administer-cluster/access-cluster-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tasks/administer-cluster/access-cluster-api.md b/docs/tasks/administer-cluster/access-cluster-api.md index 7929387906..561ff96408 100644 --- a/docs/tasks/administer-cluster/access-cluster-api.md +++ b/docs/tasks/administer-cluster/access-cluster-api.md @@ -136,7 +136,7 @@ import ( // creates the clientset clientset, _:= kubernetes.NewForConfig(config) // access the API to list pods - pods, _:= clientset.Core().Pods("").List(v1.ListOptions{}) + pods, _:= clientset.CoreV1().Pods("").List(v1.ListOptions{}) fmt.Printf("There are %d pods in the cluster\n", len(pods.Items)) ... ```