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