Skip to content

Conversation

@timebertt
Copy link
Owner

What this PR does / why we need it:

This PR deflakes the webhosting-operator e2e tests, where a few websites end up in Error state after adding or removing a shard.

This happened because the website controller checks changes to the status before updating it. If it operates on a stale cache, it might incorrectly skip status updates. We keep this optimization to ensure reconciliations stay no-op (no API requests) if everything is up-to-date. To fix the edge cases, the website predicate triggers when observing the controller's status updates.

Which issue(s) this PR fixes:
Fixes flake 1, flake 2

Special notes for your reviewer:

@timebertt timebertt added bug Something isn't working no-release-note This PR doesn't need to be listed in release notes. labels Aug 17, 2025
@timebertt timebertt enabled auto-merge (squash) August 17, 2025 15:42
@timebertt timebertt moved this from Backlog to In progress in kubernetes-controller-sharding Aug 17, 2025
@timebertt timebertt removed the no-release-note This PR doesn't need to be listed in release notes. label Aug 17, 2025
@timebertt timebertt merged commit b7ac94f into main Aug 17, 2025
4 checks passed
@timebertt timebertt deleted the deflake-webhosting-e2e branch August 17, 2025 15:49
@github-project-automation github-project-automation bot moved this from In progress to Done in kubernetes-controller-sharding Aug 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Development

Successfully merging this pull request may close these issues.

2 participants