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

Add NetworkProtection controller #462

Merged
merged 3 commits into from
Aug 4, 2022
Merged

Conversation

afritzler
Copy link
Member

Proposed Changes

The NetworkProtection controller ensures that a finalizer is present on the Network resource as long as it is being referenced/used by resources like NetworkInterfaces or AliasPrefixes.

Fixes #444

The `NetworkProtection` controller ensures that a finalizer is present
on the `Network` resource as long as it is being referenced/used by resources
like `NetworkInterface`s or `AliasPrefix`es.
@afritzler afritzler requested a review from a team as a code owner August 3, 2022 14:40
@afritzler afritzler added the enhancement New feature or request label Aug 3, 2022
Copy link
Contributor

@adracus adracus left a comment

Choose a reason for hiding this comment

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

Please double-check with the kubernetes pv-protection controller how caching might affect the removal of the finalizer - do they ever do a live check (w/o cache) agains the kube-apiserver?

@afritzler
Copy link
Member Author

Thanks @adracus for the review! Regarding the non cached access: from looking at the pv protection controller there is only one GET for the PV object via the PersistentVolumeLister. Determining if a PV is being used is done just by checking the Phase of the PV - so pretty trivial to what we need to do here.

@afritzler afritzler force-pushed the enh/network-protection-controller branch from 752fc73 to 5a101e2 Compare August 4, 2022 08:44
@afritzler afritzler force-pushed the enh/network-protection-controller branch from 5a101e2 to 94e9d36 Compare August 4, 2022 08:46
@afritzler afritzler merged commit cc69843 into main Aug 4, 2022
@afritzler afritzler deleted the enh/network-protection-controller branch August 4, 2022 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Finalizer for the Network object
2 participants