From 699fc3b3b47c96991f983972c7b610e882b8c7d0 Mon Sep 17 00:00:00 2001 From: Zeero <71720507+cts-zeero@users.noreply.github.com> Date: Mon, 5 Oct 2020 16:55:49 -0400 Subject: [PATCH] ansible-operator|helm-operator: add the kubernetes auth clients (#3974) This PR adds the kubernetes auth clients to the ansible-operator and helm-operator binaries. Closes #3973 --- changelog/fragments/fix-ansible-helm-auth-providers.yaml | 8 ++++++++ cmd/ansible-operator/main.go | 1 + cmd/helm-operator/main.go | 1 + 3 files changed, 10 insertions(+) create mode 100644 changelog/fragments/fix-ansible-helm-auth-providers.yaml diff --git a/changelog/fragments/fix-ansible-helm-auth-providers.yaml b/changelog/fragments/fix-ansible-helm-auth-providers.yaml new file mode 100644 index 0000000000..215374cad5 --- /dev/null +++ b/changelog/fragments/fix-ansible-helm-auth-providers.yaml @@ -0,0 +1,8 @@ +entries: + - description: > + Added kubernetes authentication clients to `ansible-operator` and + `helm-operator` to enable authentication to gcp, azure, etc. kubernetes + clusters. + + kind: bugfix + breaking: false diff --git a/cmd/ansible-operator/main.go b/cmd/ansible-operator/main.go index 101d180974..964a7aec27 100644 --- a/cmd/ansible-operator/main.go +++ b/cmd/ansible-operator/main.go @@ -17,6 +17,7 @@ package main import ( log "github.com/sirupsen/logrus" "github.com/spf13/pflag" + _ "k8s.io/client-go/plugin/pkg/client/auth" logf "sigs.k8s.io/controller-runtime/pkg/log" "github.com/operator-framework/operator-sdk/pkg/ansible" diff --git a/cmd/helm-operator/main.go b/cmd/helm-operator/main.go index f76ba5d911..3fa667ca8b 100644 --- a/cmd/helm-operator/main.go +++ b/cmd/helm-operator/main.go @@ -17,6 +17,7 @@ package main import ( log "github.com/sirupsen/logrus" "github.com/spf13/pflag" + _ "k8s.io/client-go/plugin/pkg/client/auth" logf "sigs.k8s.io/controller-runtime/pkg/log" "github.com/operator-framework/operator-sdk/pkg/helm"