haproxytech / helm-charts

Helm chart for HAProxy Kubernetes Ingress Controller
Apache License 2.0
155 stars 121 forks source link

feat: update podAnnotations rendering for better flexibility. #224

Closed matthisholleville closed 9 months ago

matthisholleville commented 9 months ago

This modification enhances the flexibility of podAnnotations. It provides the option to utilize evaluation functions for an locale configmap, for example.

In my scenario, I'm using this chart as a dependency, and I have a local configmap. Therefore, I want the pods to rollout when the locale configmap is modified.

...

  podAnnotations:
    checksum/local-environment: {{ include (print $.Template.BasePath "/my-local-configmap.yaml") . | sha256sum }}

...

This modification doesn't alter the current functionality.

dkorunic commented 9 months ago

Merged, thanks @matthisholleville!