diff --git a/internal/controller/scheduler/scheduler.go b/internal/controller/scheduler/scheduler.go index c970b22e..47c470c7 100644 --- a/internal/controller/scheduler/scheduler.go +++ b/internal/controller/scheduler/scheduler.go @@ -586,7 +586,7 @@ func (w *worker) Build(podSpec *corev1.PodSpec, skipCheckout bool, inputs buildI "/workspace", }, VolumeMounts: []corev1.VolumeMount{{ - Name: "workspace", + Name: workspaceVolume.Name, MountPath: "/workspace", }}, }, @@ -624,7 +624,7 @@ func (w *worker) Build(podSpec *corev1.PodSpec, skipCheckout bool, inputs buildI Command: []string{"/workspace/tini-static"}, Args: []string{"--version"}, VolumeMounts: []corev1.VolumeMount{{ - Name: "workspace", + Name: workspaceVolume.Name, MountPath: "/workspace", }}, })