From c5ef2961804ab3ca24f6c72933b58ed58865354d Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sun, 5 Nov 2023 11:49:04 +0100 Subject: [PATCH] Allow more namespaces to have vault secrets apps --- argocd/vault-secrets-operator-config/test/argocd_values.yaml | 4 +++- .../test/templates/hcpauth.yaml | 5 +++++ argocd/vault-secrets-operator-config/test/values.yaml | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/argocd/vault-secrets-operator-config/test/argocd_values.yaml b/argocd/vault-secrets-operator-config/test/argocd_values.yaml index aa77ea8..653b29e 100644 --- a/argocd/vault-secrets-operator-config/test/argocd_values.yaml +++ b/argocd/vault-secrets-operator-config/test/argocd_values.yaml @@ -1,2 +1,4 @@ organizationId: "2015ed6d-3c84-48d5-9aca-99b0034b8b5a" -projectId: "21153839-1630-4f55-9803-0220e3af458d" \ No newline at end of file +projectId: "21153839-1630-4f55-9803-0220e3af458d" +allowedNamespaces: + - wahlrecht \ No newline at end of file diff --git a/argocd/vault-secrets-operator-config/test/templates/hcpauth.yaml b/argocd/vault-secrets-operator-config/test/templates/hcpauth.yaml index 51f4873..93f36e1 100644 --- a/argocd/vault-secrets-operator-config/test/templates/hcpauth.yaml +++ b/argocd/vault-secrets-operator-config/test/templates/hcpauth.yaml @@ -8,5 +8,10 @@ metadata: spec: organizationID: {{ .Values.organizationId }} projectID: {{ .Values.projectId }} + allowedNamespaces: + - {{ .Release.Namespace }} + {{- range .Values.allowedNamespaces -}} + - {{ .name }} + {{- end -}} servicePrincipal: secretRef: vault-service-principal diff --git a/argocd/vault-secrets-operator-config/test/values.yaml b/argocd/vault-secrets-operator-config/test/values.yaml index bb4f4a1..1559164 100644 --- a/argocd/vault-secrets-operator-config/test/values.yaml +++ b/argocd/vault-secrets-operator-config/test/values.yaml @@ -1,2 +1,3 @@ organizationId: "" -projectId: "" \ No newline at end of file +projectId: "" +allowedNamespaces: [] \ No newline at end of file