From 2c2d10aeb566bbc684ec6e8707fefb242369b2a6 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 23 Oct 2023 12:35:44 +0200 Subject: [PATCH] Add optional envFrom.secretRef to deploment for credentials (#13) Called "provider-credentials" --- Makefile | 2 +- config/manager/manager.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6df9dcf..323126c 100644 --- a/Makefile +++ b/Makefile @@ -178,7 +178,7 @@ $(HELMIFY): $(LOCALBIN) .PHONY: helm helm: manifests kustomize helmify - $(KUSTOMIZE) build config/default | $(HELMIFY) -crd-dir ../weave-gitops-enterprise/charts/cluster-reflector-controller + $(KUSTOMIZE) build config/default | $(HELMIFY) -crd-dir charts/cluster-reflector-controller .PHONY: helm-chart helm-chart: manifests kustomize helmify diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index 46305f9..519fc41 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -72,6 +72,10 @@ spec: - --leader-elect image: controller:latest name: manager + envFrom: + - secretRef: + name: provider-credentials + optional: true securityContext: allowPrivilegeEscalation: false capabilities: