From f5f16949c7a77808b01948d4a5378e1f60785ae9 Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Wed, 20 Nov 2024 09:56:40 +1100 Subject: [PATCH] Fix workspace volume name on init containers --- internal/controller/scheduler/scheduler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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", }}, })