Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: yaroslavborbat <[email protected]>
  • Loading branch information
yaroslavborbat committed Dec 4, 2024
1 parent 59c2314 commit a1821f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions images/virt-artifact/patches/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,8 @@ This is necessary because of the kube-api-rewriter that changes the labels.
#### `024-auto-migrate-if-nodeplacement-changed.patch`

Start the migration if the nodeSelector or affinity has changed.
How does it work?
1. When changing the affinity or nodeSelector in the vm, the vm controller updates the vmi specification.
2. When changing the affinity or nodeSelector in vmi, the vmi controller will set the `NodePlacementNotMatched` condition to True in vmi.
3. The workload-updater controller monitors the vmi and starts migration when there is a `NodePlacementNotMatched` conditions on the vmi.
4. When the migration is completed, virt-handler will remove the condition `NodePlacementNotMatched` from the vmi

0 comments on commit a1821f9

Please sign in to comment.