To set up a development environment:
- Ensure Go is installed, maybe update to the latest
- Install Kind, Skaffold and Helm
- Run
kind create cluster
to create a new Kubernetes cluster locally - Add a
Secret
object to the cluster containing your Cronitor API key according to the instructions - In the main directory of this repository, run
skaffold dev
. Skaffold will build the Docker container and agent and push it to your local Kubernetes cluster. Anytime you make code changes it will rebuild and re-push. - If you'd like to add some sample
CronJob
s easily, you can runkubectl apply -f e2e-test/resources/main/
, which will add a bunch of pre-written test resources. - When you're done, stop skaffold and clean up with
kind delete cluster
!
To make a new release:
- Update the
version
number in the chart'sChart.yaml
- Update the
appVersion
number if necessary -- if any changes were made to the application itself. - Push to the
main
branch - Profit