Skip to content

Expose observer reconcilers via public pkg/controller aliases - #138

Merged
ntlaletsi70 merged 1 commit into
mainfrom
feat/expose-observer-reconcilers
Aug 27, 2026
Merged

Expose observer reconcilers via public pkg/controller aliases#138
ntlaletsi70 merged 1 commit into
mainfrom
feat/expose-observer-reconcilers

Conversation

@ntlaletsi70

Copy link
Copy Markdown
Collaborator

Summary

  • Adds pkg/controller/observers/{build,buildrun,githubevent,gitrepository,deployment,environment} — thin public type aliases pointing at the existing internal/controller/observers/* reconcilers, same convention already used for the domain reconcilers (pkg/controller/{environments,events,networks,sources}).
  • No behavior change — the reconcilers themselves are untouched.

Why

The observer layer (GitHubEvent→Build trigger mirroring, retry bookkeeping, BuildRun/Sensor/Kustomization/Repository status reflection) is live, wired code with zero test coverage anywhere. It was unreachable from environments-tests specifically because it had no non-internal/ import path — this closes that gap so the conformance suite can drive these reconcilers the same way it already does for BuildReconciler/GitHubEventReconciler.

Test plan

  • go build ./... clean
  • go vet ./... clean
  • Conformance scenarios landing in environments-tests against this branch, to follow

🤖 Generated with Claude Code

Same convention already used for the domain reconcilers
(pkg/controller/{environments,events,networks,sources}) — a thin
public alias so environments-tests has a legal, non-internal import
path to construct these against. The observer reconcilers
(build/buildrun/githubevent/gitrepository/deployment/environment)
had none, which made their behavior (GitHubEvent-triggered Build
annotation patching, retry bookkeeping, etc.) unreachable from the
conformance suite despite being live, wired code.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@ntlaletsi70
ntlaletsi70 merged commit dcf8949 into main Aug 27, 2026
4 checks passed
@ntlaletsi70
ntlaletsi70 deleted the feat/expose-observer-reconcilers branch August 27, 2026 14:41
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