22 lines
607 B
YAML
22 lines
607 B
YAML
{{- 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 }}
|