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

refactor: extract common predicates to k8s utils #1714

Merged
merged 5 commits into from
Nov 9, 2024

Conversation

blumamir
Copy link
Collaborator

@blumamir blumamir commented Nov 9, 2024

Using the right event filters for controllers is very important to reduce resource utilization, avoid un-needed calls to api-server, and reduce chance to race conditions when multiple things changes at the same time.

We keep refining our controller event filters to achieve better stability for odigos.

Right now, we define our custom predicates near the controller where they are used, but this make it less easy to reuse existing common predicates and share code. This PR move some of the common and reuseable predicates to k8sutils module and refactor how they are being set up

@blumamir blumamir merged commit 9603a33 into odigos-io:main Nov 9, 2024
26 checks passed
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.

3 participants