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 Netpol event handler #3834

Merged
merged 3 commits into from Aug 21, 2023
Merged

Conversation

npinaeva
Copy link
Member

Add AddressSetPodSelectorType to the types that have update functions, otherwise Delete handler will be called on every update.
Introduced here https://github.com/ovn-org/ovn-kubernetes/pull/3382/files#diff-bfe36f3f355a5f23fa5a91c6d7227b49aaefb78514769265dc91900d13a461a3L27

Add DefaultEventHandler to reduce code duplication.

Signed-off-by: Nadia Pinaeva <npinaeva@redhat.com>
types that have update function. Move network policy related
functionality to the network_controller_policy_event_handler.go.

Signed-off-by: Nadia Pinaeva <npinaeva@redhat.com>
@jcaamano jcaamano merged commit 18f8966 into ovn-org:master Aug 21, 2023
28 checks passed
@npinaeva npinaeva deleted the netpol-event-handler branch August 21, 2023 16:07
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.

None yet

2 participants