Skip to content

Conversation

@norman-zon
Copy link
Contributor

@norman-zon norman-zon commented Mar 17, 2025

There are edge cases where a reconciliation can be triggered on a suspended Kustomization, mainly through changes in a source. In these cases a "no-op" reconciliation occurs, which can be confusing for the user. This PR prevents the controller from updating the status and issuing events.

Fix: fluxcd/flux2#5174

@norman-zon
Copy link
Contributor Author

If you want to have a test for this, I think I need some help how to reproduce this case in testing.

@norman-zon norman-zon force-pushed the suspension-event-log branch 2 times, most recently from 73e7eb5 to aed4345 Compare March 17, 2025 14:08
@stefanprodan
Copy link
Member

Please squash the 2 commits into one, signoff and force push. To sign off the commit please see https://github.com/fluxcd/kustomize-controller/pull/1396/checks?check_run_id=38894311508

@norman-zon norman-zon force-pushed the suspension-event-log branch 2 times, most recently from f314c15 to c46ef3a Compare March 18, 2025 06:35
@stefanprodan stefanprodan changed the title feat: add no-op event log for suspended reconcile Skip status update for suspended Kustomizations Apr 13, 2025
@stefanprodan stefanprodan added the enhancement New feature or request label Apr 13, 2025
stefanprodan

This comment was marked as outdated.

There are edge cases where a reonciliation can be triggered on a
suspended Kustomization, mainly through changes in a source.
In these cases a "no-op" reconciliation occurs, which can be confusing
for the user. This returns early if the Kustomization ist suspended.

Signed-off-by: Norman Stetter <[email protected]>
@norman-zon norman-zon force-pushed the suspension-event-log branch from c46ef3a to 2d89eb6 Compare April 15, 2025 06:47
@stefanprodan stefanprodan changed the title Skip status update for suspended Kustomizations Skip emitting events for suspended Kustomizations Apr 15, 2025
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @norman-zon

@stefanprodan stefanprodan merged commit 60afb73 into fluxcd:main Apr 15, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing hint on a resource being suspended in the event log

2 participants