From e21b2835c6d141fc9806932a9d97b19e395ae49f Mon Sep 17 00:00:00 2001 From: ericshen Date: Fri, 25 Feb 2022 21:23:05 +0800 Subject: [PATCH] fix #7 (#9) --- pkg/cli/client/kubernetes.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/cli/client/kubernetes.go b/pkg/cli/client/kubernetes.go index 8b71534..28039e3 100644 --- a/pkg/cli/client/kubernetes.go +++ b/pkg/cli/client/kubernetes.go @@ -17,6 +17,10 @@ import ( "k8s.io/client-go/rest" "k8s.io/client-go/tools/clientcmd" log "kubeorbit.io/pkg/cli/logger" + + // Import all Kubernetes client auth plugins (e.g. Azure, GCP, OIDC, etc.) + // to ensure that exec-entrypoint and run can make use of them. + _ "k8s.io/client-go/plugin/pkg/client/auth" ) var kubeConfig *rest.Config