Skip to content

Commit 39c95f9

Browse files
committed
Specify Priority on MachineDeployment
1 parent 5ab2f32 commit 39c95f9

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/controller/worker/machines.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ func (w *workerDelegate) GenerateMachineDeployments(ctx context.Context) (worker
8989
Annotations: pool.Annotations,
9090
Taints: pool.Taints,
9191
MachineConfiguration: genericworkeractuator.ReadMachineConfiguration(pool),
92+
Priority: ptr.To(int32(1)),
9293
})
9394
}
9495
}

pkg/controller/worker/machines_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ var _ = Describe("Machines", func() {
159159
Annotations: pool.Annotations,
160160
Taints: pool.Taints,
161161
MachineConfiguration: genericworkeractuator.ReadMachineConfiguration(pool),
162+
Priority: ptr.To(int32(1)),
162163
},
163164
worker.MachineDeployment{
164165
Name: deploymentName2,
@@ -179,6 +180,7 @@ var _ = Describe("Machines", func() {
179180
Annotations: pool.Annotations,
180181
Taints: pool.Taints,
181182
MachineConfiguration: genericworkeractuator.ReadMachineConfiguration(pool),
183+
Priority: ptr.To(int32(1)),
182184
},
183185
}))
184186
})

0 commit comments

Comments
 (0)