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 GenerationChangedPredicate filter #74

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Add GenerationChangedPredicate filter #74

merged 1 commit into from
Jun 5, 2024

Conversation

gianlucam76
Copy link
Owner

@gianlucam76 gianlucam76 commented Jun 5, 2024

GenerationChangedPredicate implements a default update predicate function on Generation change.

This predicate will skip update events that have no change in the object's metadata.generation field.
The metadata.generation field of an object is incremented by the API server when writes are made to the spec field of an object.
This allows a controller to ignore update events where the spec is unchanged, and only the metadata and/or status fields are changed.

@gianlucam76 gianlucam76 merged commit 84f64bb into main Jun 5, 2024
7 checks passed
@gianlucam76 gianlucam76 deleted the predicate branch June 5, 2024 11:06
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.

1 participant