hack/verify-staging-imports.sh: check that plugins are not imported by default

Kubernetes-commit: 792d1f3dc0bd45ab63c59cfee298bfc4b898a914
This commit is contained in:
Dr. Stefan Schimanski 2017-03-03 08:52:44 +01:00 committed by Kubernetes Publisher
parent d7af91d796
commit 5cca8d5380
2 changed files with 4 additions and 3 deletions

View File

@ -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() {

View File

@ -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() {