Skip to content

Commit 4531c6d

Browse files
committed
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 <[email protected]>
1 parent 7dd03c1 commit 4531c6d

File tree

2 files changed

+0
-4
lines changed
  • staging/src/k8s.io/client-go/examples
    • in-cluster-client-configuration
    • out-of-cluster-client-configuration

2 files changed

+0
-4
lines changed

staging/src/k8s.io/client-go/examples/in-cluster-client-configuration/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ import (
3131
// _ "k8s.io/client-go/plugin/pkg/client/auth"
3232
//
3333
// Or uncomment to load specific auth plugins
34-
// _ "k8s.io/client-go/plugin/pkg/client/auth/azure"
35-
// _ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
3634
// _ "k8s.io/client-go/plugin/pkg/client/auth/oidc"
3735
)
3836

staging/src/k8s.io/client-go/examples/out-of-cluster-client-configuration/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ import (
3434
// _ "k8s.io/client-go/plugin/pkg/client/auth"
3535
//
3636
// Or uncomment to load specific auth plugins
37-
// _ "k8s.io/client-go/plugin/pkg/client/auth/azure"
38-
// _ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
3937
// _ "k8s.io/client-go/plugin/pkg/client/auth/oidc"
4038
)
4139

0 commit comments

Comments
 (0)