Skip to content

Reconcile GitRepository includes on artifact content changes - #2164

Open
banlor wants to merge 1 commit into
fluxcd:mainfrom
banlor:fix/include-artifact-watch-522
Open

banlor wants to merge 1 commit into
fluxcd:mainfrom
banlor:fix/include-artifact-watch-522

Conversation

@banlor

@banlor banlor commented Sep 19, 2026

Copy link
Copy Markdown

Related to #522. This is the source-controller part; downstream Kustomizations also need to react to source digest changes.

Index spec.include references and watch the included GitRepositories for artifact revision or digest changes. A nested source can then update its dependants without changing their Git revisions. Suspended or deleting dependants and cycle edges are skipped; no-op and timestamp-only updates do not enqueue them.

Envtest covers leaf-to-middle-to-parent propagation, unchanged Git revisions and settling without repeated rebuilds. The full make test passed with the race detector on Go 1.26.8 and Kubernetes 1.37.0.

Assisted by Hermes Agent with gpt-6-astra.

Index local include references and enqueue dependants when an included
artifact revision or digest changes. Ignore metadata-only updates and
skip suspended, deleting and cyclic dependants. Add envtest coverage
for nested includes without changing the parent Git revision.

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

Signed-off-by: Michael Basov <124149774+banlor@users.noreply.github.com>
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.

1 participant