From 5cca8d5380048d06bf1afd0bf2c92767b65b48ac Mon Sep 17 00:00:00 2001 From: "Dr. Stefan Schimanski" Date: Fri, 3 Mar 2017 08:52:44 +0100 Subject: [PATCH] hack/verify-staging-imports.sh: check that plugins are not imported by default Kubernetes-commit: 792d1f3dc0bd45ab63c59cfee298bfc4b898a914 --- examples/out-of-cluster/main.go | 2 ++ examples/third-party-resources/main.go | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/out-of-cluster/main.go b/examples/out-of-cluster/main.go index 07d0d285..a76fd2cb 100644 --- a/examples/out-of-cluster/main.go +++ b/examples/out-of-cluster/main.go @@ -25,6 +25,8 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" "k8s.io/client-go/tools/clientcmd" + // Uncomment the following line to load the gcp plugin (only required to authenticate against GKE clusters). + // _ "k8s.io/client-go/plugin/pkg/client/auth/gcp" ) func main() { diff --git a/examples/third-party-resources/main.go b/examples/third-party-resources/main.go index f7bbb270..d720a4aa 100644 --- a/examples/third-party-resources/main.go +++ b/examples/third-party-resources/main.go @@ -31,9 +31,8 @@ import ( "k8s.io/client-go/pkg/apis/extensions/v1beta1" "k8s.io/client-go/rest" "k8s.io/client-go/tools/clientcmd" - - // Only required to authenticate against GKE clusters - _ "k8s.io/client-go/plugin/pkg/client/auth/gcp" + // Uncomment the following line to load the gcp plugin (only required to authenticate against GKE clusters). + // _ "k8s.io/client-go/plugin/pkg/client/auth/gcp" ) func main() {