Drop verbose flag from runner scale set init-dind-externals copy (#3805)
This commit is contained in:
		
							parent
							
								
									75e037909e
								
							
						
					
					
						commit
						2f5c981d46
					
				|  | @ -87,7 +87,7 @@ app.kubernetes.io/instance: {{ include "gha-runner-scale-set.scale-set-name" . } | ||||||
|   {{- if eq $val.name "runner" }} |   {{- if eq $val.name "runner" }} | ||||||
| image: {{ $val.image }} | image: {{ $val.image }} | ||||||
| command: ["cp"] | command: ["cp"] | ||||||
| args: ["-r", "-v", "/home/runner/externals/.", "/home/runner/tmpDir/"] | args: ["-r", "/home/runner/externals/.", "/home/runner/tmpDir/"] | ||||||
| volumeMounts: | volumeMounts: | ||||||
|   - name: dind-externals |   - name: dind-externals | ||||||
|     mountPath: /home/runner/tmpDir |     mountPath: /home/runner/tmpDir | ||||||
|  |  | ||||||
|  | @ -893,7 +893,7 @@ func TestTemplateRenderedAutoScalingRunnerSet_EnableDinD(t *testing.T) { | ||||||
| 	assert.Equal(t, "init-dind-externals", ars.Spec.Template.Spec.InitContainers[0].Name) | 	assert.Equal(t, "init-dind-externals", ars.Spec.Template.Spec.InitContainers[0].Name) | ||||||
| 	assert.Equal(t, "ghcr.io/actions/actions-runner:latest", ars.Spec.Template.Spec.InitContainers[0].Image) | 	assert.Equal(t, "ghcr.io/actions/actions-runner:latest", ars.Spec.Template.Spec.InitContainers[0].Image) | ||||||
| 	assert.Equal(t, "cp", ars.Spec.Template.Spec.InitContainers[0].Command[0]) | 	assert.Equal(t, "cp", ars.Spec.Template.Spec.InitContainers[0].Command[0]) | ||||||
| 	assert.Equal(t, "-r -v /home/runner/externals/. /home/runner/tmpDir/", strings.Join(ars.Spec.Template.Spec.InitContainers[0].Args, " ")) | 	assert.Equal(t, "-r /home/runner/externals/. /home/runner/tmpDir/", strings.Join(ars.Spec.Template.Spec.InitContainers[0].Args, " ")) | ||||||
| 
 | 
 | ||||||
| 	assert.Len(t, ars.Spec.Template.Spec.Containers, 2, "Template.Spec should have 2 container") | 	assert.Len(t, ars.Spec.Template.Spec.Containers, 2, "Template.Spec should have 2 container") | ||||||
| 	assert.Equal(t, "runner", ars.Spec.Template.Spec.Containers[0].Name) | 	assert.Equal(t, "runner", ars.Spec.Template.Spec.Containers[0].Name) | ||||||
|  |  | ||||||
|  | @ -130,7 +130,7 @@ template: | ||||||
|   ##     initContainers: |   ##     initContainers: | ||||||
|   ##     - name: init-dind-externals |   ##     - name: init-dind-externals | ||||||
|   ##       image: ghcr.io/actions/actions-runner:latest |   ##       image: ghcr.io/actions/actions-runner:latest | ||||||
|   ##       command: ["cp", "-r", "-v", "/home/runner/externals/.", "/home/runner/tmpDir/"] |   ##       command: ["cp", "-r", "/home/runner/externals/.", "/home/runner/tmpDir/"] | ||||||
|   ##       volumeMounts: |   ##       volumeMounts: | ||||||
|   ##         - name: dind-externals |   ##         - name: dind-externals | ||||||
|   ##           mountPath: /home/runner/tmpDir |   ##           mountPath: /home/runner/tmpDir | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue