From c3f933609a911add78bbac36be7d00c49ca19463 Mon Sep 17 00:00:00 2001 From: Yashraj Dighe Date: Fri, 4 Apr 2025 19:55:03 +0530 Subject: [PATCH] Update the conditional logic a bit --- charts/gha-runner-scale-set/templates/_helpers.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/gha-runner-scale-set/templates/_helpers.tpl b/charts/gha-runner-scale-set/templates/_helpers.tpl index 0efc24d3..9f1d132b 100644 --- a/charts/gha-runner-scale-set/templates/_helpers.tpl +++ b/charts/gha-runner-scale-set/templates/_helpers.tpl @@ -99,7 +99,7 @@ volumeMounts: {{- $dindImage := "docker:dind" -}} {{- range $i, $val := .Values.template.spec.containers }} - {{- if eq $val.name "dind" }} + {{- if and (eq $val.name "dind") (hasKey $val "image") }} {{- $dindImage = $val.image }} {{- end }} {{- end }}