Skip to content

Commit 0dca60f

Browse files
committed
api update by KubeVirt Prow build 1895107364684566528
1 parent 2198c91 commit 0dca60f

File tree

3 files changed

+38
-4
lines changed

3 files changed

+38
-4
lines changed

core/v1/deepcopy_generated.go

Lines changed: 15 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/v1/types.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,6 +1385,15 @@ type VirtualMachineInstanceMigrationList struct {
13851385
type 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

core/v1/types_swagger_generated.go

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)