diff options
Diffstat (limited to 'astroshop-platform/argocd-helmchart/templates/argocd-configs/repository-secret.yaml')
| -rw-r--r-- | astroshop-platform/argocd-helmchart/templates/argocd-configs/repository-secret.yaml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/astroshop-platform/argocd-helmchart/templates/argocd-configs/repository-secret.yaml b/astroshop-platform/argocd-helmchart/templates/argocd-configs/repository-secret.yaml new file mode 100644 index 0000000..4a77cf1 --- /dev/null +++ b/astroshop-platform/argocd-helmchart/templates/argocd-configs/repository-secret.yaml @@ -0,0 +1,21 @@ +{{- range $repo_key, $repo_value := .Values.configs.repositories }} +--- +apiVersion: v1 +kind: Secret +metadata: + name: argocd-repo-{{ $repo_key }} + namespace: {{ include "argo-cd.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 }} |
