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

Handle deleting BpfProgram objects when parent program isn’t also being deleted #88

Open
anfredette opened this issue Aug 2, 2024 · 0 comments
Milestone

Comments

@anfredette
Copy link
Contributor

There are times when BpfProgram objects are deleted when the parent *Program object isn't also being deleted. For example, when InterfaceSelectors or ContainerSelectors are modified, or containers come and go. The parent operator controller needs to be triggered when this happens so that the global status can be updated. This currently happens because the state of the BpfProgram objects is changed to BpfProgCondUnloaded; however, I don't believe that it's guaranteed that the operator controller will run before the BpfProgram object is actually deleted. We may need to modify the way we handle finalizers on the BpfProgram objects to ensure that the Operator controller has a chance to run before the BpfProgram object is deleted.

@anfredette anfredette added this to the Q3-2024 milestone Aug 8, 2024
@anfredette anfredette modified the milestones: Q3-2024, Q4-2024 Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant