aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/setup.go
diff options
context:
space:
mode:
authorGravatar John Belamaric <jbelamaric@google.com> 2018-10-02 10:50:35 -0700
committerGravatar Miek Gieben <miek@miek.nl> 2018-10-02 18:50:35 +0100
commit1018a8267a05ea0a3bd968b471706604b875aeaf (patch)
tree552e0030549b1c15387fc31dbc37487a9dd8fd29 /plugin/kubernetes/setup.go
parentfb971ffff3bec6286eca3ff1ddfabbc06d6dab54 (diff)
downloadcoredns-1018a8267a05ea0a3bd968b471706604b875aeaf.tar.gz
coredns-1018a8267a05ea0a3bd968b471706604b875aeaf.tar.zst
coredns-1018a8267a05ea0a3bd968b471706604b875aeaf.zip
Add Kubernetes auth providers (#2147)
* Import auth providers for K8s * Vendor updates for K8s auth providers * Remove Azure since it is not compiling * Update vendor to remove Azure dependencies
Diffstat (limited to 'plugin/kubernetes/setup.go')
-rw-r--r--plugin/kubernetes/setup.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugin/kubernetes/setup.go b/plugin/kubernetes/setup.go
index abfd8193f..a2ad10fa2 100644
--- a/plugin/kubernetes/setup.go
+++ b/plugin/kubernetes/setup.go
@@ -19,6 +19,14 @@ import (
"github.com/mholt/caddy"
"github.com/miekg/dns"
meta "k8s.io/apimachinery/pkg/apis/meta/v1"
+
+ // Excluding azure because it is failing to compile
+ // pull this in here, because we want it excluded if plugin.cfg doesn't have k8s
+ _ "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"
"k8s.io/client-go/tools/clientcmd"
)