From a1d1f1d086b2149a380db33d95dbd24398e052ee Mon Sep 17 00:00:00 2001 From: Mark Huijgen <48476507+mhuijgen@users.noreply.github.com> Date: Mon, 16 Jun 2025 11:38:50 +0200 Subject: [PATCH] fix: template when containermode not dind fixes #4125 #4127 --- .../templates/autoscalingrunnerset.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/gha-runner-scale-set/templates/autoscalingrunnerset.yaml b/charts/gha-runner-scale-set/templates/autoscalingrunnerset.yaml index 5244e0fc..578a58a1 100644 --- a/charts/gha-runner-scale-set/templates/autoscalingrunnerset.yaml +++ b/charts/gha-runner-scale-set/templates/autoscalingrunnerset.yaml @@ -166,11 +166,11 @@ spec: initContainers: {{- if eq $containerMode.type "dind" }} - name: init-dind-externals - {{- include "gha-runner-scale-set.dind-init-container" . | nindent 8 }} - {{- end }} - {{- if (ge (.Capabilities.KubeVersion.Minor | int) 29) }} + {{- include "gha-runner-scale-set.dind-init-container" . | nindent 8 }} + {{- if (ge (.Capabilities.KubeVersion.Minor | int) 29) }} - name: dind - {{- include "gha-runner-scale-set.dind-container" . | nindent 8 }} + {{- include "gha-runner-scale-set.dind-container" . | nindent 8 }} + {{- end }} {{- end }} {{- with .Values.template.spec.initContainers }} {{- toYaml . | nindent 6 }}