Skip to content

Reconcile Kustomizations when source content changes - #1751

Closed
banlor wants to merge 1 commit into
fluxcd:mainfrom
banlor:fix/source-artifact-digest-522
Closed

banlor wants to merge 1 commit into
fluxcd:mainfrom
banlor:fix/source-artifact-digest-522

Conversation

@banlor

@banlor banlor commented Sep 19, 2026

Copy link
Copy Markdown

Related to fluxcd/source-controller#522.

An included GitRepository can produce different artifact contents while keeping the same Git revision. The source update predicate notices this, but requestsForRevisionChange drops it because lastAttemptedRevision already matches.

Keep the mapper's shortcut only when both revision and digest are unchanged. The envtest regression applies changed ConfigMap content without advancing the Git revision, and covers unchanged-digest and timestamp-only updates.

The full make test passed on Go 1.26.8 and Kubernetes 1.37.0 (330 tests and subtests). The separate API-module check also passed; those packages have no tests.

An extra full race run is not green. The kyaml ResetOpenAPI/getSchema race also reproduces on the unchanged base. Another report involves the prune test swapping the shared reconciler client; that test and getSource are unchanged, but a separate baseline retry did not reproduce that report.

Assisted by Hermes Agent with gpt-6-astra.

Compare artifact digests as well as revisions when mapping source
updates to Kustomizations. Add regression tests for applying changed
content while the source Git revision remains unchanged.

Assisted-by: Hermes Agent (gpt-6-astra / openai-codex)

Signed-off-by: Michael Basov <124149774+banlor@users.noreply.github.com>
@banlor

banlor commented Sep 26, 2026

Copy link
Copy Markdown
Author

@matheuscscp could you take a look?

@matheuscscp

Copy link
Copy Markdown
Member

You should use the ArtifactGenerator CRD for that at this point, we will not evolve other artifact-processing features outside this CRD

@banlor

banlor commented Sep 26, 2026

Copy link
Copy Markdown
Author

Got it, thanks. Closing this PR.

@banlor banlor closed this Sep 26, 2026
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