Creating a Helm operator
In this section, we will write a Helm-based operator that will be used to install the Guestbook Helm chart created in Chapter 5, Building Your First Helm Chart. This chart can be seen under the guestbook/
folder of the Packt repository (https://github.com/PacktPublishing/-Learn-Helm/tree/master/helm-charts/charts/guestbook).
An operator is built as a container image that contains the control loop logic to maintain an application. The following diagram demonstrates how the Guestbook Operator will function once it is deployed:
The Guestbook Operator will constantly watch for changes to Guestbook CRs. When a Guestbook CR is created, the Guestbook Operator will install the Guestbook chart you created in Chapter 5, Building Your First Helm Chart. Conversely, if the Guestbook CR is deleted, the Guestbook Operator will remove the Guestbook Helm chart.
With an understanding of how...