From a08a8d33ef394a7b2453b6ed574da643f164ce3f Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Thu, 29 Jan 2026 17:18:30 -0600 Subject: [PATCH] fix: gracefully handle when a component is not configured by default If a component is not configured by default in the values.yaml, default to disabling that component instead of failing to render the helm charts. --- charts/argocd-understack/templates/_helpers.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/argocd-understack/templates/_helpers.tpl b/charts/argocd-understack/templates/_helpers.tpl index d5252ca6e..cd385dd28 100644 --- a/charts/argocd-understack/templates/_helpers.tpl +++ b/charts/argocd-understack/templates/_helpers.tpl @@ -150,7 +150,7 @@ Defaults to false if any path segment is missing. {{- $scopeEnabled := get $scope "enabled" -}} {{- $result = and $result $scopeEnabled -}} {{/* Check component level: scope.component.enabled */}} -{{- $component := get $scope $component -}} +{{- $component := default (dict "enabled" false) (get $scope $component) -}} {{- $componentEnabled := get $component "enabled" -}} {{- $result = and $result $componentEnabled -}} {{- ternary "true" "false" $result -}}