diff --git a/internal/job/migration.go b/internal/job/migration.go index c5ac82d..f1e62dc 100644 --- a/internal/job/migration.go +++ b/internal/job/migration.go @@ -63,6 +63,7 @@ func MigrationJob(store *v1.Store) *batchv1.Job { containers := append(store.Spec.Container.ExtraContainers, corev1.Container{ Name: MigrateJobName(store), + VolumeMounts: store.Spec.Container.VolumeMounts, ImagePullPolicy: store.Spec.Container.ImagePullPolicy, Image: store.Spec.Container.Image, Command: []string{"sh", "-c"}, diff --git a/internal/job/setup.go b/internal/job/setup.go index f8e4b37..bb8d31c 100644 --- a/internal/job/setup.go +++ b/internal/job/setup.go @@ -67,6 +67,7 @@ func SetupJob(store *v1.Store) *batchv1.Job { containers := append(store.Spec.Container.ExtraContainers, corev1.Container{ Name: CONTAINER_NAME_SETUP_JOB, + VolumeMounts: store.Spec.Container.VolumeMounts, ImagePullPolicy: store.Spec.Container.ImagePullPolicy, Image: store.Spec.Container.Image, Command: []string{"sh", "-c"},