-
Notifications
You must be signed in to change notification settings - Fork 56
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
feat: add podAntiAffinity to MOFED #707
Conversation
rollandf
commented
Dec 18, 2023
- Add podAntiAffinity to MOFED
- Add unit test to check PodAntiAffinity rendering
- Add unit test to check NodeSelector rendering
- Extract methods in state_ofed for better readability
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
pkg/state/state_ofed_test.go
Outdated
ds := appsv1.DaemonSet{} | ||
err = runtime.DefaultUnstructuredConverter.FromUnstructured(obj.Object, &ds) | ||
Expect(err).NotTo(HaveOccurred()) | ||
Expect(ds.Name).To(BeEquivalentTo(fmt.Sprintf("mofed-%s%s-ds", osName, osVer))) |
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.
nit: I think it's more clear to hardcode the expected value instead of building it up for readability (just in tests).
Also, BeEquivalentTo()
could be replaced with Equal()
as ds.Name
is just a string.
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.
Done
bdb08d1
to
e645885
Compare
- Add podAntiAffinity to MOFED - Add unit test to check PodAntiAffinity rendering - Add unit test to check NodeSelector rendering - Extract methods in state_ofed for better readability Signed-off-by: Fred Rolland <[email protected]>
e645885
to
31f75e1
Compare
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!
- Add additional mounts to DTK container - Fix additional mounts handling issue introduced in Mellanox#707 Signed-off-by: Fred Rolland <[email protected]>
- Add additional mounts to DTK container - Fix additional mounts handling issue introduced in Mellanox#707 Signed-off-by: Fred Rolland <[email protected]>
- Add additional mounts to DTK container - Fix additional mounts handling issue introduced in #707
- Add additional mounts to DTK container - Fix additional mounts handling issue introduced in Mellanox#707 Signed-off-by: Fred Rolland <[email protected]> (cherry picked from commit 63502df)
- Add additional mounts to DTK container - Fix additional mounts handling issue introduced in Mellanox#707 Signed-off-by: Fred Rolland <[email protected]> (cherry picked from commit 63502df)
- Add additional mounts to DTK container - Fix additional mounts handling issue introduced in #707 Signed-off-by: Fred Rolland <[email protected]> (cherry picked from commit 63502df)