Custom Controller Logic
The Hostname Operator custom controller logic is located in the Go file provider/operator/hostnameoperator/hostname_operator.go
. This is the same file that the hostname-operator
Cobra command is registered within and which was covered in the previous section.
NOTE - When a container image is generated and which implements the logic within this file, a Kubernetes deployment may be created to host the controller.
Our code review will detail the mechanics involved in the controller's reconciliation of Desired and Actual states.