Skip to content
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

NodeSelector change does not trigger reconcile #186

Merged
merged 4 commits into from
Sep 27, 2019
Merged

NodeSelector change does not trigger reconcile #186

merged 4 commits into from
Sep 27, 2019

Conversation

pitiK3U
Copy link
Contributor

@pitiK3U pitiK3U commented Sep 27, 2019

When nodeSelector is changed and it matches a new node, this node ignores it.

This issue was caused by reconcile predicate UpdateFunc callback depending on
matching the node with both the new and the old policy nodeSelector. This
caused UpdateFunc to not work properly.

Now we check our node only against the new (updated) policy nodeSelector.

Resolves #180

Signed-off-by: HlinaCZ [email protected]

pitiK3U and others added 3 commits September 27, 2019 16:10
When `nodeSelector` is changed and it matches a new node, this node ignores it.

This issue was caused by reconcile predicate `UpdateFunc` callback depending on
matching the node with both the new and the old policy `nodeSelector`. This
caused `UpdateFunc` to not work properly.

Now we check our node only against the new (updated) policy `nodeSelector`.

Signed-off-by: HlinaCZ <[email protected]>
@phoracek
Copy link
Member

Stuck on default network test, the rest looks fine.

@phoracek phoracek merged commit 30dcc90 into nmstate:master Sep 27, 2019
cybertron pushed a commit to cybertron/kubernetes-nmstate that referenced this pull request Apr 9, 2021
@kubevirt-bot kubevirt-bot mentioned this pull request Apr 21, 2021
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.

NodeSelector change does not trigger reconcile
2 participants