Skip to content

Commit 45009e4

Browse files
Trim volume and container helpers in gha-runner-scale-set
1 parent 8b36ea9 commit 45009e4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

charts/gha-runner-scale-set/templates/_helpers.tpl

+4-4
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ volumeMounts:
136136
{{- range $i, $volume := .Values.template.spec.volumes }}
137137
{{- if eq $volume.name "work" }}
138138
{{- $createWorkVolume = 0 }}
139-
- {{ $volume | toYaml | nindent 2 }}
139+
- {{ $volume | toYaml | nindent 2 | trim }}
140140
{{- end }}
141141
{{- end }}
142142
{{- if eq $createWorkVolume 1 }}
@@ -150,7 +150,7 @@ volumeMounts:
150150
{{- range $i, $volume := .Values.template.spec.volumes }}
151151
{{- if eq $volume.name "work" }}
152152
{{- $createWorkVolume = 0 }}
153-
- {{ $volume | toYaml | nindent 2 }}
153+
- {{ $volume | toYaml | nindent 2 | trim }}
154154
{{- end }}
155155
{{- end }}
156156
{{- if eq $createWorkVolume 1 }}
@@ -165,7 +165,7 @@ volumeMounts:
165165
{{- define "gha-runner-scale-set.non-work-volumes" -}}
166166
{{- range $i, $volume := .Values.template.spec.volumes }}
167167
{{- if ne $volume.name "work" }}
168-
- {{ $volume | toYaml | nindent 2 }}
168+
- {{ $volume | toYaml | nindent 2 | trim }}
169169
{{- end }}
170170
{{- end }}
171171
{{- end }}
@@ -255,7 +255,7 @@ volumeMounts:
255255
{{- if eq $volMount.name "github-server-tls-cert" }}
256256
{{- $mountGitHubServerTLS = 0 }}
257257
{{- end }}
258-
- {{ $volMount | toYaml | nindent 4 }}
258+
- {{ $volMount | toYaml | nindent 4 | trim }}
259259
{{- end }}
260260
{{- end }}
261261
{{- if $mountWork }}

0 commit comments

Comments
 (0)