Skip to content

Conversation

@hardcoretime
Copy link
Contributor

@hardcoretime hardcoretime commented Jan 14, 2026

Description

A virtual machine can now be migrated to a particular node using the NodeSelector option in the virtual machine operation.

Why do we need it, and what problem does it solve?

This is required to enhance the user experience with virtual machine migration.

What is the expected result?

A virtual machine can be migrated to a particular node using defined labels.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: vm
type: feature
summary: "A virtual machine can now be migrated to a particular node using the NodeSelector option in the virtual machine operation."

@hardcoretime hardcoretime added this to the v1.5.0 milestone Jan 14, 2026
@hardcoretime hardcoretime force-pushed the feat/vm/add-target-migration branch 5 times, most recently from d3b8f62 to 8d9134f Compare January 19, 2026 15:43
Roman Sysoev added 10 commits January 19, 2026 19:42
Signed-off-by: Roman Sysoev <[email protected]>
Signed-off-by: Roman Sysoev <[email protected]>
Signed-off-by: Roman Sysoev <[email protected]>
Signed-off-by: Roman Sysoev <[email protected]>
Signed-off-by: Roman Sysoev <[email protected]>
Signed-off-by: Roman Sysoev <[email protected]>
@hardcoretime hardcoretime force-pushed the feat/vm/add-target-migration branch from 065512f to cca7297 Compare January 19, 2026 16:42
@hardcoretime hardcoretime marked this pull request as ready for review January 19, 2026 16:58
Comment on lines +51 to +57

func (n *nodeSelectorValidator) validateNodeSelector(nodeSelector map[string]string) error {
for k, v := range nodeSelector {
if errs := validation.IsQualifiedName(k); len(errs) != 0 {
return fmt.Errorf("invalid label key: %v", errs)
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it needed?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

validateNodeSelector

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fail fast if the user's input is invalid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants