fix(argo-cd): use $ as context for repository secret labels (#904)

Signed-off-by: Raphaël Pinson <raphael.pinson@camptocamp.com>
This commit is contained in:
Raphaël Pinson 2021-08-26 17:10:49 +02:00 committed by GitHub
parent 1b7d63fde9
commit 93a74912dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

View file

@ -6,7 +6,7 @@ metadata:
name: argocd-repo-creds-{{ $repo_cred_key }}
labels:
argocd.argoproj.io/secret-type: repo-creds
{{- include "argo-cd.labels" (dict "context" .) | nindent 4 }}
{{- include "argo-cd.labels" (dict "context" $) | nindent 4 }}
data:
{{- range $key, $value := $repo_cred_value }}
{{ $key }}: {{ $value | toString | b64enc }}

View file

@ -6,7 +6,7 @@ metadata:
name: argocd-repo-{{ $repo_key }}
labels:
argocd.argoproj.io/secret-type: repository
{{- include "argo-cd.labels" (dict "context" .) | nindent 4 }}
{{- include "argo-cd.labels" (dict "context" $) | nindent 4 }}
data:
{{- range $key, $value := $repo_value }}
{{ $key }}: {{ $value | b64enc }}