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 Add Helm chart (#14090) 2020-06-29 13:58:48 +02:00
_helpers.tpl fix(chart): Fix gitops-incompatible random rolling (#20184) 2022-11-10 19:10:38 +01:00
configmap-env.yaml Add option to enable single user mode (#19503) 2022-10-28 16:29:00 +02:00
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 Add Helm chart (#14090) 2020-06-29 13:58:48 +02:00
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 helm: standardize yaml configuration (#15728) 2021-02-15 08:00:54 +01:00
pvc-assets.yaml helm: add support for S3 storage (#15748) 2021-02-19 09:52:32 +01:00
pvc-system.yaml helm: add support for S3 storage (#15748) 2021-02-19 09:52:32 +01:00
secrets.yaml Fix helm postgresql secret (#19678) 2022-11-08 17:18:57 +01:00
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 Add Helm chart (#14090) 2020-06-29 13:58:48 +02:00