From 571e627d70ab10e87ca5dfe5d270dadaa8d35c69 Mon Sep 17 00:00:00 2001 From: Emanuel Oliveira Date: Mon, 23 Aug 2021 11:05:37 -0300 Subject: [PATCH] fix: remove unwanted `if` chore: adds link to read more about legacy behavior Signed-off-by: Emanuel Oliveira Signed-off-by: Emanuel Oliveira --- charts/argo-cd/templates/NOTES.txt | 1 + .../templates/argocd-configs/repository-credentials-secret.yaml | 2 -- charts/argo-cd/templates/argocd-configs/repository-secret.yaml | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/charts/argo-cd/templates/NOTES.txt b/charts/argo-cd/templates/NOTES.txt index fed04de8..29f01b81 100644 --- a/charts/argo-cd/templates/NOTES.txt +++ b/charts/argo-cd/templates/NOTES.txt @@ -1,6 +1,7 @@ {{- if .Values.configs.repositoryCredentials }} WARNING: You are using configs.repositoryCredentials parameter that's DEPRECATED Instead, use configs.repositoryTemplates and/or configs.repositories parameters +Read More about here: https://argo-cd.readthedocs.io/en/latest/operator-manual/declarative-setup/#legacy-behaviour {{- end}} In order to access the server UI you have the following options: 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 e17412b3..701b8ef0 100644 --- a/charts/argo-cd/templates/argocd-configs/repository-credentials-secret.yaml +++ b/charts/argo-cd/templates/argocd-configs/repository-credentials-secret.yaml @@ -1,4 +1,3 @@ -{{- if .Values.configs.credentialTemplates }} {{- range $repo_cred_key, $repo_cred_value := .Values.configs.credentialTemplates }} apiVersion: v1 kind: Secret @@ -12,4 +11,3 @@ data: {{ $key }}: {{ $value | toString | b64enc }} {{- end }} {{- end }} -{{- end }} diff --git a/charts/argo-cd/templates/argocd-configs/repository-secret.yaml b/charts/argo-cd/templates/argocd-configs/repository-secret.yaml index 6e774b08..ad5e6ac7 100644 --- a/charts/argo-cd/templates/argocd-configs/repository-secret.yaml +++ b/charts/argo-cd/templates/argocd-configs/repository-secret.yaml @@ -1,4 +1,3 @@ -{{- if .Values.configs.repositories }} {{- range $repo_key, $repo_value := .Values.configs.repositories }} --- apiVersion: v1 @@ -13,4 +12,3 @@ data: {{ $key }}: {{ $value | b64enc }} {{- end }} {{- end }} -{{- end }}