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

Propagate bundle and bundledeployment status updates to GitRepo #2223

Merged
merged 3 commits into from
Mar 18, 2024

Conversation

weyfonk
Copy link
Contributor

@weyfonk weyfonk commented Mar 11, 2024

A filter on status updates in the GitRepo reconciler prevents updates to statuses of bundles and bundle deployments from being reflected in their owning GitRepo's status. In turn, this leads to outdated and inconsistent GitRepo statuses.

This updates those filters to ensure that bundle status updates are taken into account. End-to-end tests are updated as well to prevent future regressions.

Refers to #1972
Follow-up to #2018

@weyfonk weyfonk requested a review from a team as a code owner March 11, 2024 16:42
@weyfonk weyfonk force-pushed the fix-gitrepo-status-updates branch 2 times, most recently from 9800688 to c94d86e Compare March 12, 2024 15:40
weyfonk added 3 commits March 13, 2024 08:16
A filter on status updates in the GitRepo reconciler prevents updates to
statuses of bundles and bundle deployments from being reflected in their
owning GitRepo's status. In turn, this leads to outdated and
inconsistent GitRepo statuses.

This commit remedies this, with a first attempt at covering GitRepo
status updates in end-to-end tests.
Eliminating event filters would increase the number of reconcile loops,
as each update to a `GitRepo`'s status would trigger a new loop.
Instead, this commit restores event filters, widening the set of events
allowed via predicates to bundle status updates.
This was already done for polling-based gitrepo testing, but missing for
the webhook-based test case, which would lead to conflicts in some
cases.
@weyfonk weyfonk force-pushed the fix-gitrepo-status-updates branch from e468c8d to c4ad77c Compare March 13, 2024 07:16
Copy link
Contributor

@p-se p-se left a comment

Choose a reason for hiding this comment

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

lgtm

@weyfonk weyfonk merged commit c91754a into rancher:master Mar 18, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants