Skip to content

Commit

Permalink
Importing k8s.io/client-go/plugin/pkg/client/auth package to hopefull…
Browse files Browse the repository at this point in the history
…y fix oidc auth issue.

Signed-off-by: Steven Wade <steven@stevenwade.co.uk>
  • Loading branch information
swade1987 committed Jul 26, 2024
1 parent 43c72ff commit 4ef8caf
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions internal/provider/provider_resource_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ import (
clientcmdapi "k8s.io/client-go/tools/clientcmd/api"
"sigs.k8s.io/controller-runtime/pkg/client"

_ "k8s.io/client-go/plugin/pkg/client/auth"

"github.com/fluxcd/terraform-provider-flux/internal/utils"
)

Expand Down
1 change: 0 additions & 1 deletion internal/provider/resource_bootstrap_git.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
apitypes "k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/util/json"
_ "k8s.io/client-go/plugin/pkg/client/auth"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/kustomize/api/konfig"

Expand Down
1 change: 0 additions & 1 deletion internal/utils/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (
"k8s.io/cli-runtime/pkg/genericclioptions"
"k8s.io/client-go/discovery"
"k8s.io/client-go/discovery/cached/memory"
_ "k8s.io/client-go/plugin/pkg/client/auth"
"k8s.io/client-go/rest"
"k8s.io/client-go/restmapper"
"k8s.io/client-go/tools/clientcmd"
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
"github.com/fluxcd/flux2/v2/pkg/manifestgen"
"github.com/go-logr/logr"
"github.com/hashicorp/terraform-plugin-framework/providerserver"
_ "k8s.io/client-go/plugin/pkg/client/auth"
ctrllog "sigs.k8s.io/controller-runtime/pkg/log"

"github.com/fluxcd/terraform-provider-flux/internal/provider"
Expand Down

0 comments on commit 4ef8caf

Please sign in to comment.