* feat(argo-cd): support annotations in argocd-configs secrets Signed-off-by: yu-croco <yuki.kita22@gmail.com> * fix(argo-cd): align to exitsing format Signed-off-by: yu-croco <yuki.kita22@gmail.com>
18 lines
494 B
YAML
18 lines
494 B
YAML
{{- range $repo_key, $repo_value := .Values.configs.repositories }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: argocd-repo-{{ $repo_key }}
|
|
labels:
|
|
argocd.argoproj.io/secret-type: repository
|
|
{{- include "argo-cd.labels" (dict "context" $) | nindent 4 }}
|
|
{{- with $.Values.configs.repositoriesAnnotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
data:
|
|
{{- range $key, $value := $repo_value }}
|
|
{{ $key }}: {{ $value | b64enc }}
|
|
{{- end }}
|
|
{{- end }}
|