use stringData for credentials

Signed-off-by: Juan Jimenez <cortopy@users.noreply.github.com>
This commit is contained in:
Juan Jimenez 2024-06-21 18:37:29 +01:00
parent b0d4648471
commit d497edaf37
2 changed files with 5 additions and 3 deletions

View file

@ -3,7 +3,7 @@ appVersion: v2.11.3
kubeVersion: ">=1.23.0-0"
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd
version: 7.2.0
version: 7.2.1
home: https://github.com/argoproj/argo-helm
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
sources:
@ -26,6 +26,8 @@ annotations:
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
artifacthub.io/changes: |
- kind: changed
description: Repository credentials Secret will use stringData to increase compatibility with plugins like helm-secrets
- kind: removed
description: Remove `server.certificate.secretName`, as the expected secret name is static (argocd-server-tls)
- kind: removed

View file

@ -14,8 +14,8 @@ metadata:
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
data:
stringData:
{{- range $key, $value := $repo_cred_value }}
{{ $key }}: {{ $value | toString | b64enc }}
{{ $key }}: {{ $value | toString }}
{{- end }}
{{- end }}