1
0
Fork 0
mirror of https://github.com/imjasonh/git-k8s synced 2026-07-08 23:05:21 +00:00
No description
Find a file
Claude e631dba802
Fix repo-watcher deleting manually-created GitBranch CRDs
The repo-watcher's delete loop was unconditionally removing any
GitBranch whose branch name didn't appear on the remote. This caused
a race with the push controller: when a GitBranch is created for a
branch that doesn't yet exist (e.g., before a push transaction),
the watcher would delete it before the push could complete.

Fix: only delete GitBranch CRDs that the repo-watcher itself created,
identified by having an owner reference pointing to the GitRepository.
Branches created manually or by other controllers are left alone.

This fixes the flaky TestPushTransaction e2e test, where the watcher
would delete "e2e-push-feature" before the push controller could
update its headCommit.

https://claude.ai/code/session_01P7xfBqARU5DFS8QJ4uDPVj
2026-02-28 14:32:09 +00:00
.github/workflows Add comprehensive e2e tests for repo-watcher-controller 2026-02-28 14:15:28 +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 Fix repo-watcher deleting manually-created GitBranch CRDs 2026-02-28 14:32:09 +00:00
test/e2e Add comprehensive e2e tests for repo-watcher-controller 2026-02-28 14:15:28 +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