From 4531c6de760ec42941d9f509103f1b29c88bfae0 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 --- .../client-go/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/staging/src/k8s.io/client-go/examples/in-cluster-client-configuration/main.go b/staging/src/k8s.io/client-go/examples/in-cluster-client-configuration/main.go index b583e337338..e119c19ea1b 100644 --- a/staging/src/k8s.io/client-go/examples/in-cluster-client-configuration/main.go +++ b/staging/src/k8s.io/client-go/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/staging/src/k8s.io/client-go/examples/out-of-cluster-client-configuration/main.go b/staging/src/k8s.io/client-go/examples/out-of-cluster-client-configuration/main.go index 7698e132181..071eae7636f 100644 --- a/staging/src/k8s.io/client-go/examples/out-of-cluster-client-configuration/main.go +++ b/staging/src/k8s.io/client-go/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" )