Skip to content

Commit 4df2c6e

Browse files
authored
Merge pull request #430 from buildkite/fix-workspace-volume-name-init-containers
Fix workspace volume name on init containers
2 parents 09c2a28 + f5f1694 commit 4df2c6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/controller/scheduler/scheduler.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ func (w *worker) Build(podSpec *corev1.PodSpec, skipCheckout bool, inputs buildI
586586
"/workspace",
587587
},
588588
VolumeMounts: []corev1.VolumeMount{{
589-
Name: "workspace",
589+
Name: workspaceVolume.Name,
590590
MountPath: "/workspace",
591591
}},
592592
},
@@ -624,7 +624,7 @@ func (w *worker) Build(podSpec *corev1.PodSpec, skipCheckout bool, inputs buildI
624624
Command: []string{"/workspace/tini-static"},
625625
Args: []string{"--version"},
626626
VolumeMounts: []corev1.VolumeMount{{
627-
Name: "workspace",
627+
Name: workspaceVolume.Name,
628628
MountPath: "/workspace",
629629
}},
630630
})

0 commit comments

Comments
 (0)