The README briefly touches on how the upgrades are executed.
Use the following diagram to familiarize yourself with the internals around the process.
- Go version v1.22.0+
- Docker version 17.03+.
- kubectl version v1.28+.
- Access to a Kubernetes v1.30+ cluster running:
- cert-manager
- Helm Controller
- System Upgrade Controller (v0.13.4+)
Build and push your image to the location specified by IMG
:
make docker-build docker-push IMG=<some-registry>/upgrade-controller:tag
NOTE: This image ought to be published in the personal registry you specified. And it is required to have access to pull the image from the working environment. Make sure you have the proper permission to the registry if the above commands don’t work.
Install the CRDs into the cluster:
make install
Deploy the controller to the cluster with the image specified by IMG
:
make deploy IMG=<some-registry>/upgrade-controller:tag
NOTE: If you encounter RBAC errors, you may need to grant yourself cluster-admin privileges or be logged in as admin.
Use the custom resource examples from the config/samples
dir in order to trigger the reconciliation:
kubectl apply -k config/samples/
NOTE: Ensure that the samples have the expected values you'd want to test with.
Delete the instances (CRs) from the cluster:
kubectl delete -k config/samples/
Delete the APIs (CRDs) from the cluster:
make uninstall
Undeploy the controller from the cluster:
make undeploy