This controller does the same job as ArgoCD, which is a k8s Continuous Deployment controller following the GitOps pattern.
export CODEGEN_PKG=../../code-generator
./hack/update-codegen.sh./hack/controller-gen.shApply the CRD manifests:
kubectl apply -Rf deploy/crdsApply example CR:
kubectl apply -Rf example/application.yamlRun the controller:
go run main.go run \
-k ~/.kube/config \
-l infoOr you can run the controller in Kubernetes:
kubectl apply -Rf deploy/gitops-controller