@@ -1385,6 +1385,15 @@ type VirtualMachineInstanceMigrationList struct {
13851385type VirtualMachineInstanceMigrationSpec struct {
13861386 // The name of the VMI to perform the migration on. VMI must exist in the migration objects namespace
13871387 VMIName string `json:"vmiName,omitempty" valid:"required"`
1388+
1389+ // AddedNodeSelector is an additional selector that can be used to
1390+ // complement a NodeSelector or NodeAffinity as set on the VM
1391+ // to restrict the set of allowed target nodes for a migration.
1392+ // In case of key collisions, values set on the VM objects
1393+ // are going to be preserved to ensure that addedNodeSelector
1394+ // can only restrict but not bypass constraints already set on the VM object.
1395+ // +optional
1396+ AddedNodeSelector map [string ]string `json:"addedNodeSelector,omitempty"`
13881397}
13891398
13901399// VirtualMachineInstanceMigrationPhaseTransitionTimestamp gives a timestamp in relation to when a phase is set on a vmi
@@ -2314,6 +2323,15 @@ type MigrateOptions struct {
23142323 // +optional
23152324 // +listType=atomic
23162325 DryRun []string `json:"dryRun,omitempty" protobuf:"bytes,1,rep,name=dryRun"`
2326+
2327+ // AddedNodeSelector is an additional selector that can be used to
2328+ // complement a NodeSelector or NodeAffinity as set on the VM
2329+ // to restrict the set of allowed target nodes for a migration.
2330+ // In case of key collisions, values set on the VM objects
2331+ // are going to be preserved to ensure that addedNodeSelector
2332+ // can only restrict but not bypass constraints already set on the VM object.
2333+ // +optional
2334+ AddedNodeSelector map [string ]string `json:"addedNodeSelector,omitempty"`
23172335}
23182336
23192337// VirtualMachineInstanceGuestAgentInfo represents information from the installed guest agent
0 commit comments