-
Notifications
You must be signed in to change notification settings - Fork 688
Default to mig-strategy none if not specified #590
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
Conversation
Why mig-strategy |
Sure, that's a fair point, but doesn't match what the current behaviour is. See
I don't mind changing the default behaviour, but don't want to do it in this PR since may have other implications. Given the links above, maybe the correct way to do this though is to also add a |
f64d879
to
6713641
Compare
OK, if the default throughout is still |
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.
LGTM assuming defaulting to migStrategy: node
is okay
This change makes the handling of the MIG strategy consistent with GFD and the device plugin. This also removes the need to explicitly check for nil values when querying this value. Signed-off-by: Evan Lezar <[email protected]>
6713641
to
93f161c
Compare
Confirmed that the value in the config overrides the CLI setting. |
This change ensures that a mig-strategy=none is used if no mig strategy is explicitly specified when building the map of required devices.
This also removes the need to explicitly check for nil values when querying this value.
The MPS control daemon segfaults from the operator when dereferencing the nil mig strategy value in the config: