update comment about hook weights in syn2mas

This commit is contained in:
Gaël Goinvic committed 2025-06-05 17:33:58 +02:00
1 parent dab606af7e
commit 6fc4a044fd
3 files changed
+14 -9

No files matched your search

@@ -36,15 +36,20 @@ metadata:
) }}
annotations:
{{- if .dryRun }}
{{- /*
Hook Weights are
- -25 : The syn2mas dryRun job, running after MAS pod which initialized its DB
- 0 : The deployment marker job, we want it not to update any marker if the dryRun is not completed
*/}}
"helm.sh/hook": post-install,post-upgrade
"helm.sh/hook-weight": "-25"
{{- else }}
"helm.sh/hook": pre-install,pre-upgrade
{{- /*
Hook Weights are
- -10 : The initSecret hook generating secrets used by the check config job
- -5 : The synapse secret & configMap for the hook, so that they are created before the job
- 0 : The job itself, so that it is run after the secrets and configs are created &
- -10 : The initSecret hook generating secrets used by the syn2mas job
- -5 : The MAS & synapse secret & configMap for the hook, so that they are created before the job
- 0 : The job itself, so that it is run after the secrets and configs are created
*/}}
"helm.sh/hook-weight": "0"
{{- end }}
@@ -17,9 +17,9 @@ metadata:
"helm.sh/hook": pre-install,pre-upgrade
{{- /*
Hook Weights are
- -10 : The initSecret hook generating secrets used by the check config job
- -5 : The synapse secret & configMap for the hook, so that they are created before the job
- 0 : The job itself, so that it is run after the secrets and configs are created &
- -10 : The initSecret hook generating secrets used by the syn2mas job
- -5 : The MAS & synapse secret & configMap for the hook, so that they are created before the job
- 0 : The job itself, so that it is run after the secrets and configs are created
*/}}
"helm.sh/hook-weight": "0"
rules:
@@ -18,9 +18,9 @@ metadata:
"helm.sh/hook": pre-install,pre-upgrade
{{- /*
Hook Weights are
- -10 : The initSecret hook generating secrets used by the check config job
- -5 : The synapse secret & configMap for the hook, so that they are created before the job
- 0 : The job itself, so that it is run after the secrets and configs are created &
- -10 : The initSecret hook generating secrets used by the syn2mas job
- -5 : The MAS & synapse secret & configMap for the hook, so that they are created before the job
- 0 : The job itself, so that it is run after the secrets and configs are created
*/}}
"helm.sh/hook-weight": "0"
roleRef: