-
clone this repo
git clone git@github.com:mattfenwick/cyclonus.git cd cyclonus
-
set up a KinD cluster with a CNI that supports network policies
pushd hack/kind/calico ./setup-kind.sh popd
-
run cyclonus
go run cmd/cyclonus/main.go generate --mock --perturbation-wait-seconds 0
-
run format, vet, tests
make fmt make vet make test
- go to a kubernetes repo
- look at the tag versions
- choose the latest release version
- update the k8s.io library versions in go.mod
See goreleaser
's requirements here.
Get a GitHub Personal Access Token and add the repo
scope.
Set GITHUB_TOKEN
to this value:
export GITHUB_TOKEN=...
See here for more information on github tokens.
Choose a tag/release name, create and push a tag:
TAG=v0.0.1
git tag $TAG
git push origin $TAG
You'll need to be logged in to dockerhub from the command line, in order to push images: docker login
Cut a release:
goreleaser release --clean
Make a test release:
goreleaser release --snapshot --clean