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

[v0.10] Backport of Adds predicate when webhook commit changes #3006

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

0xavi0
Copy link
Contributor

@0xavi0 0xavi0 commented Oct 24, 2024

  • Adds predicate when webhook commit changes

This adds a new predicate when the webhook commit is changed in the GitRepo. It also filters out Job events for creation/deletion, because they add extra reconcile loops that only increase the possibility of race conditions and that are not required.

The reconciler already knows when a Job is created/deleted because it is the owner and does not need to react upon those 2 events from the cluster.

Refers to: #2969
Refers to: #3003

* Adds predicate when webhook commit changes

This adds a new predicate when the webhook commit is changed in the `GitRepo`.
It also filters out `Job` events for creation/deletion, because they add extra reconcile loops
that only increase the possibility of race conditions and that are not required.

The reconciler already knows when a `Job` is created/deleted because it is the owner and does not
need to react upon those 2 events from the cluster.

Refers to: rancher#2969

---------

Signed-off-by: Xavi Garcia <[email protected]>
Co-authored-by: Corentin Néau <[email protected]>
Co-authored-by: Mario Manno <[email protected]>
@0xavi0 0xavi0 self-assigned this Oct 24, 2024
@0xavi0 0xavi0 changed the title [v0.10] Backport of Adds predicate when webhook commit changes (#2986) [v0.10] Backport of Adds predicate when webhook commit changes Oct 24, 2024
@0xavi0 0xavi0 marked this pull request as ready for review October 25, 2024 08:39
@0xavi0 0xavi0 requested a review from a team as a code owner October 25, 2024 08:39
@0xavi0 0xavi0 merged commit 3e06ed3 into rancher:release/v0.10 Oct 25, 2024
12 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.

2 participants