-
Notifications
You must be signed in to change notification settings - Fork 5
feat(vm): add target migration #1874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
d3b8f62 to
8d9134f
Compare
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]>
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]>
065512f to
cca7297
Compare
images/virtualization-artifact/pkg/controller/vmop/migration/internal/service/migration.go
Show resolved
Hide resolved
|
|
||
| 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) | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
validateNodeSelector
There was a problem hiding this comment.
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.
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
Changelog entries