From ed8ffbda4c012d0bf453f173616cab9939db8f52 Mon Sep 17 00:00:00 2001 From: Douglas Schilling Landgraf Date: Tue, 8 Sep 2020 20:56:13 -0400 Subject: [PATCH] [en]: Add package main to client-go example The package main is missing from the example. Signed-off-by: Douglas Schilling Landgraf --- content/en/docs/tasks/administer-cluster/access-cluster-api.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/en/docs/tasks/administer-cluster/access-cluster-api.md b/content/en/docs/tasks/administer-cluster/access-cluster-api.md index 5c94dceffc..a99b6fe984 100644 --- a/content/en/docs/tasks/administer-cluster/access-cluster-api.md +++ b/content/en/docs/tasks/administer-cluster/access-cluster-api.md @@ -171,6 +171,8 @@ The Go client can use the same [kubeconfig file](/docs/concepts/configuration/or as the kubectl CLI does to locate and authenticate to the API server. See this [example](https://git.k8s.io/client-go/examples/out-of-cluster-client-configuration/main.go): ```golang +package main + import ( "fmt" "k8s.io/apimachinery/pkg/apis/meta/v1"