feat(argo-cd): remove necessary create entry in argocd-cmd-params-cm ConfigMap (#2146)

fix(argo-cd): remove necessary `create` entry in `argocd-cmd-params-cm` ConfigMap

Signed-off-by: Atkins Chang <atkinschang@gmail.com>
This commit is contained in:
Atkins 2023-07-04 17:22:19 +08:00 committed by GitHub
parent b9f610e319
commit 5c4506b481
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -207,7 +207,7 @@ applicationsetcontroller.enable.leader.election: {{ gt (.Values.applicationSet.r
Merge Argo Params Configuration with Preset Configuration
*/}}
{{- define "argo-cd.config.params" -}}
{{- $config := omit .Values.configs.params "annotations" }}
{{- $config := omit .Values.configs.params "create" "annotations" }}
{{- $preset := include "argo-cd.config.params.presets" . | fromYaml | default dict -}}
{{- range $key, $value := mergeOverwrite $preset $config }}
{{ $key }}: {{ toString $value | toYaml }}