argocd-helm/charts/argo-cd/templates/argocd-configs/repository-secret.yaml
Marco Kilchhofer 388102400f
fix(argo-cd): Evaluate namespace field via helm root scope (#1963)
Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
2023-04-14 08:44:19 +09:00

21 lines
596 B
YAML

{{- range $repo_key, $repo_value := .Values.configs.repositories }}
---
apiVersion: v1
kind: Secret
metadata:
name: argocd-repo-{{ $repo_key }}
namespace: {{ $.Release.Namespace | quote }}
labels:
argocd.argoproj.io/secret-type: repository
{{- include "argo-cd.labels" (dict "context" $) | nindent 4 }}
{{- with $.Values.configs.repositoriesAnnotations }}
annotations:
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
data:
{{- range $key, $value := $repo_value }}
{{ $key }}: {{ $value | b64enc }}
{{- end }}
{{- end }}