-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Fix issue where routes are not cleaned up when a namespace label is deleted or updated. #20579
Fix issue where routes are not cleaned up when a namespace label is deleted or updated. #20579
Conversation
deleted or updated. fixes bugz #1613163
// we make locally in processNamespace() will be immediately | ||
// reflected to plugins in the chain beneath us. This creates | ||
// cleanup issues as old == new in Plugin.HandleNamespaces(). | ||
namespaces := sets.NewString(c.FilteredNamespaceNames.List()...) |
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.
Oof, good catch
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.
Yes, processNamespace() is synchronous but Host admitter and Unique status plugins are holding reference to the FilteredNamespaceNames and any subsequent changes in processNamespace() are immediately reflected in those plugin.
@pravisankar PTAL |
/retest |
/skip |
/test all |
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
// we make locally in processNamespace() will be immediately | ||
// reflected to plugins in the chain beneath us. This creates | ||
// cleanup issues as old == new in Plugin.HandleNamespaces(). | ||
namespaces := sets.NewString(c.FilteredNamespaceNames.List()...) |
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.
Yes, processNamespace() is synchronous but Host admitter and Unique status plugins are holding reference to the FilteredNamespaceNames and any subsequent changes in processNamespace() are immediately reflected in those plugin.
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ironcladlou, pravisankar, ramr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
Fix an issue where routes are not cleaned up if a namespace label is deleted or updated.
fixes bugz #1613163
/cc @openshift/sig-network-edge