From 657db72ce75ef956d0dc2729fc3d7966860fea51 Mon Sep 17 00:00:00 2001 From: Greg Konush <12027037+gregkonush@users.noreply.github.com> Date: Fri, 29 Nov 2024 11:52:14 -0800 Subject: [PATCH] fix: add conditional for key (#570) --- bootstrap/appset-helm.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bootstrap/appset-helm.yaml b/bootstrap/appset-helm.yaml index d2d63af..457881c 100644 --- a/bootstrap/appset-helm.yaml +++ b/bootstrap/appset-helm.yaml @@ -22,7 +22,6 @@ spec: chart: dgraph version: 24.0.5 releaseName: dgraph - customValues: true valuesObject: zero: persistence: @@ -52,10 +51,9 @@ spec: releaseName: "{{.releaseName}}" skipCrds: false templatePatch: | - {{- if .customValues }} + {{- if hasKey . "valuesObject" }} spec: source: helm: - valuesObject: - {{ .valuesObject }} + valuesObject: {{- .valuesObject | toYaml | nindent 12 }} {{- end }}