-
Notifications
You must be signed in to change notification settings - Fork 116
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
nodeAffinity is not correctly updated with DeepDerivative #47
nodeAffinity is not correctly updated with DeepDerivative #47
Conversation
Ouch! Couple of questions:
|
if equality.Semantic.DeepDerivative(in.Spec, ds.Spec) { | ||
|
||
// Note: with DeepDerivative, controller has issue not updating nodeAffinity correctly: | ||
// https://bugzilla.redhat.com/show_bug.cgi?id=1914066, Chnange it to DeepEqual() |
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.
Typo: "chnange".
I also wonder if we should delete the comment abovee
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.
I can delete previous comment if you prefer, just thought it might be useful for reference if later we hit the endless loop issue again.
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.
I don't have a strong opinion, I guess it's fine since the comment below explains it pretty clearly.
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.
fixed typo
NodeAffinity is not updated when deleting policy, the legacy nodeAffinity remains in the daemonset spec.
I didn't know any issue with the other one, I think we can keep it as it is for now.
Yes, there is no endless loop in sriov operator log with DeepEqual. |
LGTM (apart from the typo) |
ae33d79
to
6881552
Compare
LGTM |
With |
Signed-off-by: zshi-redhat <[email protected]>
6881552
to
4b0bafa
Compare
Done |
https://bugzilla.redhat.com/show_bug.cgi?id=1914066