1
0
Fork 0
mirror of https://github.com/imjasonh/git-k8s synced 2026-07-08 06:45:12 +00:00
git-k8s/pkg/apis/git/v1alpha1
Claude 4e4f5f923f
Add unit tests and GitRepoSync e2e test
Add unit tests for all packages that previously had zero test coverage:
- pkg/apis/git/v1alpha1: defaults, deepcopy, scheme registration, constants
- pkg/client: toUnstructured/fromUnstructured round-trips, context injection
- pkg/reconciler/push: splitKey, nestedFieldNoCopy, unstructuredNestedStringMap, base64 decoding
- pkg/reconciler/sync: splitKey
- pkg/reconciler/resolver: splitKey, changeName

Add e2e test exercising the sync controller:
- Creates second Gitea repo and GitRepository CR
- Creates GitBranch CRs with headCommit set via status subresource patch
- Creates GitRepoSync CR and verifies the sync controller processes it

https://claude.ai/code/session_01QfFzqKQUsxxBsiZUhuJ3pG
2026-02-28 01:52:05 +00:00
..
defaults.go Implement Git-as-K8s control plane with Knative controllers 2026-02-27 23:58:44 +00:00
defaults_test.go Add unit tests and GitRepoSync e2e test 2026-02-28 01:52:05 +00:00
doc.go Change API group from git.k8s.io to git-k8s.imjasonh.com 2026-02-28 00:34:34 +00:00
groupversion_info.go Change API group from git.k8s.io to git-k8s.imjasonh.com 2026-02-28 00:34:34 +00:00
types.go Implement Git-as-K8s control plane with Knative controllers 2026-02-27 23:58:44 +00:00
types_test.go Add unit tests and GitRepoSync e2e test 2026-02-28 01:52:05 +00:00
zz_generated.deepcopy.go Implement Git-as-K8s control plane with Knative controllers 2026-02-27 23:58:44 +00:00