Note: Please take a look at https://fluxcd.io/contributing/flux/ to find out about how to contribute to Flux and how to interact with the Flux Development team.
There are a number of dependencies required to be able to run image-reflector-controller and its test-suite locally.
Prerequisites:
- go >= 1.16
- kustomize >= 3.1
You can run them by simply doing
make test
Note: Since this will also trigger generating some files such as manifests, it is advised to run this prior to committing your changes, especially when making API changes.
Please refer to the Makefile to see all make targets and what they do.
You can install the CRDs and the controller by simply doing
# Install CRDs into a cluster
make install
# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
make deploy
You can run the controller on your host by
make run
If you made any changes to CRDs API, you can update CRDs API reference doc by
make api-docs