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

Fix issue where routes are not cleaned up when a namespace label is deleted or updated. #20579

Merged
merged 1 commit into from
Aug 13, 2018

Conversation

ramr
Copy link
Contributor

@ramr ramr commented Aug 8, 2018

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

@openshift-ci-robot openshift-ci-robot added sig/network-edge size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 8, 2018
// 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()...)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oof, good catch

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.

@ironcladlou
Copy link
Contributor

@pravisankar PTAL

@ramr
Copy link
Contributor Author

ramr commented Aug 9, 2018

/retest

@ramr
Copy link
Contributor Author

ramr commented Aug 9, 2018

/skip

@ramr
Copy link
Contributor Author

ramr commented Aug 9, 2018

/test all

Copy link

@pravisankar pravisankar left a 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()...)

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.

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 10, 2018
@pravisankar
Copy link

/retest

@ironcladlou
Copy link
Contributor

/lgtm

@openshift-ci-robot
Copy link

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 13, 2018
@ramr
Copy link
Contributor Author

ramr commented Aug 13, 2018

/retest

@openshift-merge-robot openshift-merge-robot merged commit 878fc39 into openshift:master Aug 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. sig/network-edge size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants