Create a project directory for your project and initialize the project:
operator-sdk init --domain docker.io --repo github.com/bilalcaliskan/varnish-operator
Create a simple Varnish API:
operator-sdk create api --group cache --version v1alpha1 --kind Varnish --resource --controller
Build and push your operator’s image:
make docker-build docker-push IMG="docker.io/bilalcaliskan/varnish-operator:v0.0.1"
This project requires below tools while developing:
- pre-commit
- golangci-lint - required by pre-commit