Skip to content

Commit

Permalink
Set NodeSelector on dbsync job
Browse files Browse the repository at this point in the history
  • Loading branch information
olliewalsh committed Nov 8, 2024
1 parent 5c05397 commit 1b55a77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/neutronapi/dbsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func DbSyncJob(
Spec: batchv1.JobSpec{
Template: corev1.PodTemplateSpec{
Spec: corev1.PodSpec{
NodeSelector: cr.Spec.NodeSelector,
RestartPolicy: corev1.RestartPolicyOnFailure,
ServiceAccountName: cr.RbacResourceName(),
Containers: []corev1.Container{
Expand Down

0 comments on commit 1b55a77

Please sign in to comment.