Skip to content

Commit 90ca5b6

Browse files
committed
Drop verbose flag from runner scale set init-dind-externals copy
This follows up github/docs#34015 and resolves the issue brought up in #3637 As mentioned in the docs PR as well: Having the verbose flag in there is nice for debugging but it logs a ton of mostly information that isn't interesting most of the time. Plus is slows the cp call down having to output it all. It shouldn't be the default recommended way to run it as such.
1 parent 8b36ea9 commit 90ca5b6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ app.kubernetes.io/instance: {{ include "gha-runner-scale-set.scale-set-name" . }
8787
{{- if eq $val.name "runner" }}
8888
image: {{ $val.image }}
8989
command: ["cp"]
90-
args: ["-r", "-v", "/home/runner/externals/.", "/home/runner/tmpDir/"]
90+
args: ["-r", "/home/runner/externals/.", "/home/runner/tmpDir/"]
9191
volumeMounts:
9292
- name: dind-externals
9393
mountPath: /home/runner/tmpDir

charts/gha-runner-scale-set/tests/template_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ func TestTemplateRenderedAutoScalingRunnerSet_EnableDinD(t *testing.T) {
893893
assert.Equal(t, "init-dind-externals", ars.Spec.Template.Spec.InitContainers[0].Name)
894894
assert.Equal(t, "ghcr.io/actions/actions-runner:latest", ars.Spec.Template.Spec.InitContainers[0].Image)
895895
assert.Equal(t, "cp", ars.Spec.Template.Spec.InitContainers[0].Command[0])
896-
assert.Equal(t, "-r -v /home/runner/externals/. /home/runner/tmpDir/", strings.Join(ars.Spec.Template.Spec.InitContainers[0].Args, " "))
896+
assert.Equal(t, "-r /home/runner/externals/. /home/runner/tmpDir/", strings.Join(ars.Spec.Template.Spec.InitContainers[0].Args, " "))
897897

898898
assert.Len(t, ars.Spec.Template.Spec.Containers, 2, "Template.Spec should have 2 container")
899899
assert.Equal(t, "runner", ars.Spec.Template.Spec.Containers[0].Name)

charts/gha-runner-scale-set/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ template:
115115
## initContainers:
116116
## - name: init-dind-externals
117117
## image: ghcr.io/actions/actions-runner:latest
118-
## command: ["cp", "-r", "-v", "/home/runner/externals/.", "/home/runner/tmpDir/"]
118+
## command: ["cp", "-r", "/home/runner/externals/.", "/home/runner/tmpDir/"]
119119
## volumeMounts:
120120
## - name: dind-externals
121121
## mountPath: /home/runner/tmpDir

0 commit comments

Comments
 (0)