1
0
Fork 0
mirror of https://github.com/imjasonh/git-k8s synced 2026-07-08 14:55:17 +00:00
Commit graph

9 commits

Author SHA1 Message Date
Claude
cc391645e1
Change API group from git.k8s.io to git-k8s.imjasonh.com
The *.k8s.io group is protected in Kubernetes and requires an
api-approved.kubernetes.io annotation. Switch to a custom domain
to avoid the restriction entirely.

https://claude.ai/code/session_01QfFzqKQUsxxBsiZUhuJ3pG
2026-02-28 00:34:34 +00:00
Claude
2f694f6f1f
Add api-approved.kubernetes.io annotation to CRDs
The *.k8s.io API group is protected in Kubernetes and requires
the api-approved.kubernetes.io annotation on CRDs.

https://claude.ai/code/session_01QfFzqKQUsxxBsiZUhuJ3pG
2026-02-28 00:30:22 +00:00
Claude
ffc7c82ae4
Fix LeaderAware interface: use correct Promote signature
The Knative reconciler.LeaderAware interface requires:
  Promote(Bucket, func(Bucket, types.NamespacedName)) error
Our code had the wrong enqueue function signature using
(Bucket, string) error instead.

https://claude.ai/code/session_01QfFzqKQUsxxBsiZUhuJ3pG
2026-02-28 00:21:24 +00:00
6ddba9902d
Merge pull request #1 from imjasonh/copilot/add-gha-workflow-for-prs
Add GHA CI workflow: build, test, and e2e on KinD with Knative
2026-02-27 19:16:26 -05:00
Claude
9c51925fc7
Add .gitignore for Go binaries and IDE files
https://claude.ai/code/session_01QfFzqKQUsxxBsiZUhuJ3pG
2026-02-28 00:14:29 +00:00
copilot-swe-agent[bot]
75552e7c2c Add go test step to CI build job
Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
2026-02-28 00:14:00 +00:00
copilot-swe-agent[bot]
75abbbbfcd Initial plan 2026-02-28 00:11:28 +00:00
Claude
314915b5dd
Add GitHub Actions CI with KinD e2e using chainguard-dev/actions
Two jobs:
- build: compiles all controller binaries and runs go vet
- e2e: spins up KinD cluster with Knative via chainguard-dev/actions,
  deploys CRDs and controllers with ko, verifies rollout, runs
  smoke test creating a GitRepository CR. On failure, collects
  kind-diag diagnostics as artifacts.

https://claude.ai/code/session_01QfFzqKQUsxxBsiZUhuJ3pG
2026-02-28 00:10:31 +00:00
Claude
8e65104201
Implement Git-as-K8s control plane with Knative controllers
Build a complete Kubernetes control plane for Git operations using Knative's
pkg framework, go-git for in-memory Git operations, and ko for builds.

Architecture:
- 4 CRDs: GitRepository, GitBranch, GitPushTransaction, GitRepoSync
- Push controller: atomic Git push via go-git with CAS (compare-and-swap)
- Sync controller: two-way sync with in-memory merge base calculation
- Resolver controller: automated 3-way merge for conflicted syncs
- In-cluster Gitea server for backing storage
- Full RBAC, ko-based deployments, and code-gen scaffolding

Note: go.sum needs generation via `go mod tidy` in an environment with
full internet access (knative.dev/pkg v0.0.0-20250520014526-44579e9ce5ed).

https://claude.ai/code/session_01QfFzqKQUsxxBsiZUhuJ3pG
2026-02-27 23:58:44 +00:00