diff options
author | 2022-12-13 21:49:03 +0100 | |
---|---|---|
committer | 2022-12-13 15:49:03 -0500 | |
commit | 60b7161feecf1d4fba79ce4429b5a990093fc665 (patch) | |
tree | 322e3cc67278734e06124e94f6de0ba1f7510397 /plugin/kubernetes/setup.go | |
parent | c3228615e071de61b0c6f60d9a231c494726dda0 (diff) | |
download | coredns-60b7161feecf1d4fba79ce4429b5a990093fc665.tar.gz coredns-60b7161feecf1d4fba79ce4429b5a990093fc665.tar.zst coredns-60b7161feecf1d4fba79ce4429b5a990093fc665.zip |
Drop obsolete client-go auth plugins (#5806)
* Drop obsolete client-go auth plugins
The OpenStack plugin is no longer available, even in version 0.24.4 of
client-go; see
https://github.com/kubernetes/client-go/blob/v0.24.4/plugin/pkg/client/auth/openstack/openstack_stub.go
It is replaced by the client-keystone-auth credential plugin. The
plugin has been entirely removed in client-go 0.26.0, which breaks the
build when any other dependency pulls in client-go 0.26.0 or later.
The GCP plugin is deprecated in K8s 1.22+ and unavailable in 1.26+
(although it is still stubbed in client-go 0.26.0). Is it replaced by
the gke-gcloud-auth-plugin credential plugin.
Signed-off-by: Stephen Kitt <skitt@redhat.com>
* Update plugin/kubernetes/setup.go
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Co-authored-by: Chris O'Haver <cohaver@infoblox.com>
Diffstat (limited to 'plugin/kubernetes/setup.go')
-rw-r--r-- | plugin/kubernetes/setup.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugin/kubernetes/setup.go b/plugin/kubernetes/setup.go index d7f11e1a7..0b988a9a0 100644 --- a/plugin/kubernetes/setup.go +++ b/plugin/kubernetes/setup.go @@ -17,9 +17,7 @@ import ( "github.com/go-logr/logr" "github.com/miekg/dns" meta "k8s.io/apimachinery/pkg/apis/meta/v1" - _ "k8s.io/client-go/plugin/pkg/client/auth/gcp" // pull this in here, because we want it excluded if plugin.cfg doesn't have k8s - _ "k8s.io/client-go/plugin/pkg/client/auth/oidc" // pull this in here, because we want it excluded if plugin.cfg doesn't have k8s - _ "k8s.io/client-go/plugin/pkg/client/auth/openstack" // pull this in here, because we want it excluded if plugin.cfg doesn't have k8s + _ "k8s.io/client-go/plugin/pkg/client/auth/oidc" // pull this in here, because we want it excluded if plugin.cfg doesn't have k8s "k8s.io/client-go/tools/clientcmd" "k8s.io/klog/v2" ) |