From 93a74912dc6dcbfbc84264272931cd565119afb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Thu, 26 Aug 2021 17:10:49 +0200 Subject: [PATCH] fix(argo-cd): use $ as context for repository secret labels (#904) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaƫl Pinson --- charts/argo-cd/Chart.yaml | 5 ++--- .../argocd-configs/repository-credentials-secret.yaml | 2 +- .../argo-cd/templates/argocd-configs/repository-secret.yaml | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/charts/argo-cd/Chart.yaml b/charts/argo-cd/Chart.yaml index 4f6a944b..d5e17438 100644 --- a/charts/argo-cd/Chart.yaml +++ b/charts/argo-cd/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: 2.1.1 description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes. name: argo-cd -version: 3.17.2 +version: 3.17.3 home: https://github.com/argoproj/argo-helm icon: https://argoproj.github.io/argo-cd/assets/logo.png keywords: @@ -21,5 +21,4 @@ dependencies: condition: redis-ha.enabled annotations: artifacthub.io/changes: | - - "[Changed]: Upgrade argo-cd image to 2.1.1" - - "[Fixed]: Reenabling static assets for the argo-cd server" + - "[Fixed]: use $ as context for repository secret labels" diff --git a/charts/argo-cd/templates/argocd-configs/repository-credentials-secret.yaml b/charts/argo-cd/templates/argocd-configs/repository-credentials-secret.yaml index fe21917c..f9165d5d 100644 --- a/charts/argo-cd/templates/argocd-configs/repository-credentials-secret.yaml +++ b/charts/argo-cd/templates/argocd-configs/repository-credentials-secret.yaml @@ -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 }} diff --git a/charts/argo-cd/templates/argocd-configs/repository-secret.yaml b/charts/argo-cd/templates/argocd-configs/repository-secret.yaml index b42eaefc..2c0d4f08 100644 --- a/charts/argo-cd/templates/argocd-configs/repository-secret.yaml +++ b/charts/argo-cd/templates/argocd-configs/repository-secret.yaml @@ -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 }}