From bf4bedb8f81d35314c4e7d240cc40160cb04da19 Mon Sep 17 00:00:00 2001 From: Oleg Sabov Date: Fri, 8 Mar 2024 23:35:01 +0200 Subject: [PATCH] fix kube auth oidc (#57) --- pkg/backend/controller.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkg/backend/controller.go b/pkg/backend/controller.go index 3819bb6..637cd13 100644 --- a/pkg/backend/controller.go +++ b/pkg/backend/controller.go @@ -2,6 +2,10 @@ package backend import ( "context" + "net/http" + "os" + "time" + cpk8s "github.com/crossplane-contrib/provider-kubernetes/apis/v1alpha1" xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" "github.com/crossplane/crossplane-runtime/pkg/resource" @@ -21,11 +25,9 @@ import ( "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" + _ "k8s.io/client-go/plugin/pkg/client/auth/oidc" "k8s.io/client-go/rest" "k8s.io/client-go/tools/clientcmd" - "net/http" - "os" - "time" ) type StatusInfo struct {