From 45009e4356a4772440ff91ee6769331a6318e794 Mon Sep 17 00:00:00 2001 From: Patrick Vickery Date: Tue, 12 Nov 2024 14:27:10 -0500 Subject: [PATCH] Trim volume and container helpers in gha-runner-scale-set --- charts/gha-runner-scale-set/templates/_helpers.tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/gha-runner-scale-set/templates/_helpers.tpl b/charts/gha-runner-scale-set/templates/_helpers.tpl index bd71ed64c9..7a5e8d77ef 100644 --- a/charts/gha-runner-scale-set/templates/_helpers.tpl +++ b/charts/gha-runner-scale-set/templates/_helpers.tpl @@ -136,7 +136,7 @@ volumeMounts: {{- range $i, $volume := .Values.template.spec.volumes }} {{- if eq $volume.name "work" }} {{- $createWorkVolume = 0 }} -- {{ $volume | toYaml | nindent 2 }} +- {{ $volume | toYaml | nindent 2 | trim }} {{- end }} {{- end }} {{- if eq $createWorkVolume 1 }} @@ -150,7 +150,7 @@ volumeMounts: {{- range $i, $volume := .Values.template.spec.volumes }} {{- if eq $volume.name "work" }} {{- $createWorkVolume = 0 }} -- {{ $volume | toYaml | nindent 2 }} +- {{ $volume | toYaml | nindent 2 | trim }} {{- end }} {{- end }} {{- if eq $createWorkVolume 1 }} @@ -165,7 +165,7 @@ volumeMounts: {{- define "gha-runner-scale-set.non-work-volumes" -}} {{- range $i, $volume := .Values.template.spec.volumes }} {{- if ne $volume.name "work" }} -- {{ $volume | toYaml | nindent 2 }} +- {{ $volume | toYaml | nindent 2 | trim }} {{- end }} {{- end }} {{- end }} @@ -255,7 +255,7 @@ volumeMounts: {{- if eq $volMount.name "github-server-tls-cert" }} {{- $mountGitHubServerTLS = 0 }} {{- end }} - - {{ $volMount | toYaml | nindent 4 }} + - {{ $volMount | toYaml | nindent 4 | trim }} {{- end }} {{- end }} {{- if $mountWork }}