From 105983d93c2a2b6ea5df4d8c55a514825f00687e Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Thu, 3 Oct 2024 11:08:52 +0200 Subject: [PATCH] client-go: remove obsolete auth plugins from examples The azure and gcp plugins no longer do anything other than point to the corresponding external credential plugins. Client code should no longer try to load them, so they should be removed from the examples. Signed-off-by: Stephen Kitt Kubernetes-commit: 4531c6de760ec42941d9f509103f1b29c88bfae0 --- examples/in-cluster-client-configuration/main.go | 2 -- examples/out-of-cluster-client-configuration/main.go | 2 -- 2 files changed, 4 deletions(-) diff --git a/examples/in-cluster-client-configuration/main.go b/examples/in-cluster-client-configuration/main.go index b583e337..e119c19e 100644 --- a/examples/in-cluster-client-configuration/main.go +++ b/examples/in-cluster-client-configuration/main.go @@ -31,8 +31,6 @@ import ( // _ "k8s.io/client-go/plugin/pkg/client/auth" // // Or uncomment to load specific auth plugins - // _ "k8s.io/client-go/plugin/pkg/client/auth/azure" - // _ "k8s.io/client-go/plugin/pkg/client/auth/gcp" // _ "k8s.io/client-go/plugin/pkg/client/auth/oidc" ) diff --git a/examples/out-of-cluster-client-configuration/main.go b/examples/out-of-cluster-client-configuration/main.go index 7698e132..071eae76 100644 --- a/examples/out-of-cluster-client-configuration/main.go +++ b/examples/out-of-cluster-client-configuration/main.go @@ -34,8 +34,6 @@ import ( // _ "k8s.io/client-go/plugin/pkg/client/auth" // // Or uncomment to load specific auth plugins - // _ "k8s.io/client-go/plugin/pkg/client/auth/azure" - // _ "k8s.io/client-go/plugin/pkg/client/auth/gcp" // _ "k8s.io/client-go/plugin/pkg/client/auth/oidc" )