This pull request introduces several changes to the Helm chart templates and the AutoMQ controller to enhance functionality and improve maintainability. The most important changes include adding new template functions to handle image tags and pull policies, updating deployment annotations, and cleaning up services in the AutoMQ controller.
Helm Chart Template Enhancements:
deploy/charts/automq-operator/templates/_helpers.tpl: Added functions to extract the image tag, determine the image pull policy based on the tag, and set the revision annotation. (automq-operator.getTag, automq-operator.pullPolicy, automq-operator.revision)
This pull request introduces several changes to the Helm chart templates and the AutoMQ controller to enhance functionality and improve maintainability. The most important changes include adding new template functions to handle image tags and pull policies, updating deployment annotations, and cleaning up services in the AutoMQ controller.
Helm Chart Template Enhancements:
deploy/charts/automq-operator/templates/_helpers.tpl
: Added functions to extract the image tag, determine the image pull policy based on the tag, and set the revision annotation. (automq-operator.getTag
,automq-operator.pullPolicy
,automq-operator.revision
)Deployment Configuration Updates:
deploy/charts/automq-operator/templates/deployment.yaml
: Updated deployment annotations to include the operator revision and modified the image pull policy to use the new template function. [1] [2]AutoMQ Controller Cleanup:
internal/controller/automq_controller_b.go
: Added code to delete the bootstrap service during the broker cleanup process.