fix: template when containermode not dind

fixes #4125 #4127
This commit is contained in:
Mark Huijgen 2025-06-16 11:38:50 +02:00
parent e858d67926
commit a1d1f1d086
1 changed files with 4 additions and 4 deletions

View File

@ -166,11 +166,11 @@ spec:
initContainers: initContainers:
{{- if eq $containerMode.type "dind" }} {{- if eq $containerMode.type "dind" }}
- name: init-dind-externals - name: init-dind-externals
{{- include "gha-runner-scale-set.dind-init-container" . | nindent 8 }} {{- include "gha-runner-scale-set.dind-init-container" . | nindent 8 }}
{{- end }} {{- if (ge (.Capabilities.KubeVersion.Minor | int) 29) }}
{{- if (ge (.Capabilities.KubeVersion.Minor | int) 29) }}
- name: dind - name: dind
{{- include "gha-runner-scale-set.dind-container" . | nindent 8 }} {{- include "gha-runner-scale-set.dind-container" . | nindent 8 }}
{{- end }}
{{- end }} {{- end }}
{{- with .Values.template.spec.initContainers }} {{- with .Values.template.spec.initContainers }}
{{- toYaml . | nindent 6 }} {{- toYaml . | nindent 6 }}