Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 690 Bytes

File metadata and controls

46 lines (31 loc) · 690 Bytes

Gitops

This controller does the same job as ArgoCD, which is a k8s Continuous Deployment controller following the GitOps pattern.

How to build ?

Generate code using code-generator

export CODEGEN_PKG=../../code-generator
./hack/update-codegen.sh

Generate CRD manifests

./hack/controller-gen.sh

How to run ?

Apply the CRD manifests:

kubectl apply -Rf deploy/crds

Apply example CR:

kubectl apply -Rf example/application.yaml

Run the controller:

go run main.go run \
    -k ~/.kube/config \
    -l info

Or you can run the controller in Kubernetes:

kubectl apply -Rf deploy/gitops-controller