mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
serverSideDiff finds the field set the CD controller owns by looking its manager up by name. The live YAML fixtures were renamed to cd-controller; the predicted-live JSON beside them still said argocd-controller, and the diff reads both. Every server-side-diff case that asks "which fields are mine" failed with "no managed fields found for manager: cd-controller" — not because the logic is wrong, but because the two halves of the same fixture disagreed about who applied it. Seven JSON fixtures now name the same manager as the YAML they pair with. pkg/diff goes green; the full gitops-engine module is 12/12. Co-authored-by: Hanzo Dev <[email protected]>
GitOps Engine
Various GitOps operators address different use-cases and provide different user experiences but all have similar set of core features. This library implements core GitOps features:
- Kubernetes resource cache ✅
- Resources reconciliation ✅
- Sync Planning ✅
- Access to Git repositories
- Manifest Generation
Usage
This library is mainly designed to be used by the Hanzo CD project. However, it can also be used by other projects that need GitOps features.
To use the library, add it as a dependency in your Go module:
go get github.com/hanzoai/cd/gitops-engine/v3