mastodon/chart/templates
Sheogorath e868f41923
fix(chart): Fix gitops-incompatible random rolling (#20184)
This patch reworks the Pod rolling mechanism, which is supposed to update Pods
with each migration run, but since the it generates a new random value on each
helm execution, this will constantly roll all pods in a GitOps driven deployment,
which reconciles the helm release.

This is resolved by fixing the upgrade to the `.Release.Revision`, which should
stay identical, unless config or helm release version have been changed. Further
it introduces automatic rolls based on adjustments to the environment variables
and secrets.

The implementation uses a helper template, following the 1-2-N rule, and omitting
code duplication.

References:
https://helm.sh/docs/chart_template_guide/builtin_objects/
https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
2022-11-10 19:10:38 +01:00
..
tests
_helpers.tpl fix(chart): Fix gitops-incompatible random rolling (#20184) 2022-11-10 19:10:38 +01:00
configmap-env.yaml
cronjob-media-remove.yaml Assign unique set of labels to k8s deployments #19703 (#19706) 2022-11-08 17:21:06 +01:00
deployment-sidekiq.yaml fix(chart): Fix gitops-incompatible random rolling (#20184) 2022-11-10 19:10:38 +01:00
deployment-streaming.yaml fix(chart): Fix gitops-incompatible random rolling (#20184) 2022-11-10 19:10:38 +01:00
deployment-web.yaml fix(chart): Fix gitops-incompatible random rolling (#20184) 2022-11-10 19:10:38 +01:00
hpa.yaml
ingress.yaml helm: Fix ingress pathType (#19729) 2022-11-08 17:20:09 +01:00
job-assets-precompile.yaml Assign unique set of labels to k8s deployments #19703 (#19706) 2022-11-08 17:21:06 +01:00
job-chewy-upgrade.yaml Assign unique set of labels to k8s deployments #19703 (#19706) 2022-11-08 17:21:06 +01:00
job-create-admin.yaml Assign unique set of labels to k8s deployments #19703 (#19706) 2022-11-08 17:21:06 +01:00
job-db-migrate.yaml Assign unique set of labels to k8s deployments #19703 (#19706) 2022-11-08 17:21:06 +01:00
NOTES.txt
pvc-assets.yaml
pvc-system.yaml
secrets.yaml
service-streaming.yaml Assign unique set of labels to k8s deployments #19703 (#19706) 2022-11-08 17:21:06 +01:00
service-web.yaml Assign unique set of labels to k8s deployments #19703 (#19706) 2022-11-08 17:21:06 +01:00
serviceaccount.yaml