1
0
Fork 0
mirror of https://github.com/imjasonh/git-k8s synced 2026-07-09 07:06:52 +00:00
No description
Find a file
Claude ee281430b6
Add repo-watcher-controller for polling remote Git refs
Introduces a fourth controller that watches GitRepository resources and
polls their remotes via git ls-remote on a configurable per-repo interval
(spec.pollInterval, defaulting to 30s). It auto-creates, updates, and
deletes GitBranch CRDs to reflect the actual state of the remote,
enabling fast detection of external pushes to trigger downstream sync.

Key changes:
- Add PollInterval field to GitRepositorySpec
- New pkg/reconciler/repowatcher with controller and reconciler
- New cmd/repo-watcher-controller binary
- CRD manifest updated for pollInterval
- Deployment manifest for the new controller
- Unit tests for ref filtering, naming, and poll interval logic
- CLAUDE.md updated with new controller docs and Go module workaround

https://claude.ai/code/session_01P7xfBqARU5DFS8QJ4uDPVj
2026-02-28 14:09:58 +00:00
.github/workflows Speed up e2e tests by removing Knative and parallelizing setup 2026-02-28 04:35:38 +00:00
cmd Add repo-watcher-controller for polling remote Git refs 2026-02-28 14:09:58 +00:00
config Add repo-watcher-controller for polling remote Git refs 2026-02-28 14:09:58 +00:00
hack Implement Git-as-K8s control plane with Knative controllers 2026-02-27 23:58:44 +00:00
pkg Add repo-watcher-controller for polling remote Git refs 2026-02-28 14:09:58 +00:00
test/e2e Speed up e2e tests by removing Knative and parallelizing setup 2026-02-28 04:35:38 +00:00
.gitignore Add .gitignore for Go binaries and IDE files 2026-02-28 00:14:29 +00:00
.ko.yaml Implement Git-as-K8s control plane with Knative controllers 2026-02-27 23:58:44 +00:00
CLAUDE.md Add repo-watcher-controller for polling remote Git refs 2026-02-28 14:09:58 +00:00
go.mod go get -u ./... && go mod tidy: update dependencies 2026-02-28 04:14:23 +00:00
go.sum go get -u ./... && go mod tidy: update dependencies 2026-02-28 04:14:23 +00:00