Skip to content

Commit a7ecca9

Browse files
Malte Lehmannbrandond
authored andcommitted
Fix securityContext and volumes for prepare
fixes #363
1 parent b1a9781 commit a7ecca9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/upgrade/job/job.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ func New(plan *upgradeapiv1.Plan, node *corev1.Node, controllerName string) *bat
314314
upgradectr.WithSecrets(plan.Spec.Secrets),
315315
upgradectr.WithPlanEnvironment(plan.Name, plan.Status),
316316
upgradectr.WithImagePullPolicy(ImagePullPolicy),
317-
upgradectr.WithVolumes(plan.Spec.Upgrade.Volumes),
318-
upgradectr.WithSecurityContext(plan.Spec.Upgrade.SecurityContext),
317+
upgradectr.WithVolumes(plan.Spec.Prepare.Volumes),
318+
upgradectr.WithSecurityContext(plan.Spec.Prepare.SecurityContext),
319319
),
320320
)
321321
}

0 commit comments

Comments
 (0)