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:
parent
1b7d63fde9
commit
93a74912dc
3 changed files with 4 additions and 5 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue