Skip to content

Commit

Permalink
fix: missing vm for jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
TrayserCassa committed Oct 2, 2024
1 parent d6cd996 commit 3584996
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/job/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
1 change: 1 addition & 0 deletions internal/job/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down

0 comments on commit 3584996

Please sign in to comment.