vectordotdev / helm-charts

Helm charts for Vector.
https://vector.dev
Mozilla Public License 2.0
114 stars 89 forks source link

Vector pods are not being recreated with changes in the secrets #351

Open dgdelahera opened 11 months ago

dgdelahera commented 11 months ago

According to the Helm documentation, a checksum function can be used to ensure a deployment's annotation section is updated if another file changes. This will recreate pods if changes in ConfigMaps or Secrets.

At the moment, the deployment has this annotation for the ConfigMaps. However, the annotation for the secrets is missing, causing that a change in the secret doesn't recreate the pods.

Adding the following annotation to the Deployment will fix this problem:

checksum/secrets:  {{ $.Values.secrets.generic | sha256sum }}