mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-12 04:26:51 +00:00
Trim volume and container helpers in gha-runner-scale-set (#3807)
Co-authored-by: Bassem Dghaidi <568794+Link-@users.noreply.github.com>
This commit is contained in:
@@ -136,7 +136,7 @@ volumeMounts:
|
|||||||
{{- range $i, $volume := .Values.template.spec.volumes }}
|
{{- range $i, $volume := .Values.template.spec.volumes }}
|
||||||
{{- if eq $volume.name "work" }}
|
{{- if eq $volume.name "work" }}
|
||||||
{{- $createWorkVolume = 0 }}
|
{{- $createWorkVolume = 0 }}
|
||||||
- {{ $volume | toYaml | nindent 2 }}
|
- {{ $volume | toYaml | nindent 2 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if eq $createWorkVolume 1 }}
|
{{- if eq $createWorkVolume 1 }}
|
||||||
@@ -150,7 +150,7 @@ volumeMounts:
|
|||||||
{{- range $i, $volume := .Values.template.spec.volumes }}
|
{{- range $i, $volume := .Values.template.spec.volumes }}
|
||||||
{{- if eq $volume.name "work" }}
|
{{- if eq $volume.name "work" }}
|
||||||
{{- $createWorkVolume = 0 }}
|
{{- $createWorkVolume = 0 }}
|
||||||
- {{ $volume | toYaml | nindent 2 }}
|
- {{ $volume | toYaml | nindent 2 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if eq $createWorkVolume 1 }}
|
{{- if eq $createWorkVolume 1 }}
|
||||||
@@ -165,7 +165,7 @@ volumeMounts:
|
|||||||
{{- define "gha-runner-scale-set.non-work-volumes" -}}
|
{{- define "gha-runner-scale-set.non-work-volumes" -}}
|
||||||
{{- range $i, $volume := .Values.template.spec.volumes }}
|
{{- range $i, $volume := .Values.template.spec.volumes }}
|
||||||
{{- if ne $volume.name "work" }}
|
{{- if ne $volume.name "work" }}
|
||||||
- {{ $volume | toYaml | nindent 2 }}
|
- {{ $volume | toYaml | nindent 2 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -255,7 +255,7 @@ volumeMounts:
|
|||||||
{{- if eq $volMount.name "github-server-tls-cert" }}
|
{{- if eq $volMount.name "github-server-tls-cert" }}
|
||||||
{{- $mountGitHubServerTLS = 0 }}
|
{{- $mountGitHubServerTLS = 0 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- {{ $volMount | toYaml | nindent 4 }}
|
- {{ $volMount | toYaml | nindent 4 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if $mountWork }}
|
{{- if $mountWork }}
|
||||||
|
|||||||
Reference in New Issue
Block a user