redpanda-data / kminion

KMinion is a feature-rich Prometheus exporter for Apache Kafka written in Go. It is lightweight and highly configurable so that it will meet your requirements.
MIT License
615 stars 123 forks source link

[Helm] Add configmap checksum annotations to restart the pod on configuration change #238

Closed hagaibarel closed 3 months ago

hagaibarel commented 9 months ago

Hi folks,

Currently when we do any configuration changes in the chart's configmap (via the config key in the values file), the changes aren't reflected in the pod and a manual restart is required for the new settings to take affect.

One way to handle it is to add an annotation to the pod with the checksum of the the file, so any changes cause it to change and restart the pod, see here for more details - https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments

Willing to PR this if you'd like