When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
You need go 1.19 or higher to build locally:
$ go build ./...
or via Docker:
$ docker build -f Dockerfile.build .
You may run the test with:
$ docker build -f Dockerfile.test .
You can play with this controller by hacking the code, and deploy it to a local kind kubernetes cluster, and then creating Release objects.
$ cat config.yaml
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
- role: worker
$ kind create cluster --config=config.yaml
-
Run the following command to setup all the components:
$ ./dev.sh
-
Create a secret for Github access token.
$ kubectl create secret generic gittokens --from-literal=token=${GITHUB_ACCESS_TOKEN} -n kube-system