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] prometheus rules reconcile #113

Merged

Conversation

nicolastakashi
Copy link
Collaborator

@nicolastakashi nicolastakashi commented Jul 9, 2024

Adding WithEventFilter to allow us reduce the amount of resources we're reconciling, if the object didn't match the reconcile rule it will not be added to the work queue.

REf: https://stuartleeks.com/posts/kubebuilder-event-filters-part-1-delete/

@nicolastakashi nicolastakashi requested a review from a team as a code owner July 9, 2024 15:47
@nicolastakashi nicolastakashi force-pushed the refactor/improving-prometheus-rules-reconciliation branch from 73c5c52 to c0e9388 Compare July 9, 2024 16:20
Signed-off-by: Nicolas Takashi <nicolas.takashi@coralogix.com>
@nicolastakashi nicolastakashi force-pushed the refactor/improving-prometheus-rules-reconciliation branch from c0e9388 to 6a798df Compare July 9, 2024 16:21
Copy link
Contributor

github-actions bot commented Jul 9, 2024

New Coverage 11.7% of statements
Patch Coverage 20.0% of changed statements (2/10)

Coverage provided by https://github.com/seriousben/go-patch-cover-action

Copy link
Contributor

@OrNovo OrNovo left a comment

Choose a reason for hiding this comment

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

Great!

@nicolastakashi nicolastakashi merged commit 5e29be4 into main Jul 14, 2024
7 of 8 checks passed
@nicolastakashi nicolastakashi deleted the refactor/improving-prometheus-rules-reconciliation branch July 14, 2024 09:42
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.

2 participants