Commit 7bb0623
fix(vm): sync unschedulable KVVM on vmclass placement change (#2177)
Fix synchronization of internal KubeVirt VM when the VM is in Unschedulable state and placement-related settings are changed via VMClass.
The workaround path in SyncKvvmHandler now treats these change paths as placement policy updates:
virtualMachineClassName
VirtualMachineClass:spec.nodeSelector
VirtualMachineClass:spec.tolerations
This allows controller to apply KVVM update and recycle launcher pod for unschedulable cases.
Also added unit tests for placement-path detection in isPlacementPolicyChanged.
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
Signed-off-by: Pavel Tishkov <pavel.tishkov@flant.com>1 parent 30a64bd commit 7bb0623
2 files changed
Lines changed: 17 additions & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
720 | | - | |
| 720 | + | |
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
319 | 320 | | |
320 | 321 | | |
321 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
322 | 338 | | |
0 commit comments