Skip to content

Commit ac422e3

Browse files
author
Cui Shuaijie
committed
fix(platform):delete machine failed(#1351)
1 parent 70dd906 commit ac422e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/platform/controller/machine/machine_controller.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ func (c *Controller) needsUpdate(oldMachine *platformv1.Machine, newMachine *pla
123123
return true
124124
}
125125

126+
if oldMachine.Status.Phase != platformv1.MachineTerminating && newMachine.Status.Phase == platformv1.MachineTerminating {
127+
return true
128+
}
129+
126130
// Control the synchronization interval through the health detection interval
127131
// to avoid version conflicts caused by concurrent modification
128132
healthCondition := newMachine.GetCondition(conditionTypeHealthCheck)

0 commit comments

Comments
 (0)