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 }}