Skip to content

Commit 2e52832

Browse files
update comment about hook weights in syn2mas
1 parent 9222baf commit 2e52832

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

charts/matrix-stack/templates/matrix-authentication-service/syn2mas_job.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,19 @@ metadata:
3636
) }}
3737
annotations:
3838
{{- if .dryRun }}
39+
{{- /*
40+
Hook Weights are
41+
- -25 : The syn2mas dryRun job, running after MAS pod which initialized its DB
42+
- 0 : The deployment marker job, we want it not to update any marker if the dryRun is not completed
43+
*/}}
3944
"helm.sh/hook": post-install,post-upgrade
4045
"helm.sh/hook-weight": "-25"
4146
{{- else }}
4247
"helm.sh/hook": pre-install,pre-upgrade
4348
{{- /*
4449
Hook Weights are
45-
- -10 : The initSecret hook generating secrets used by the check config job
46-
- -5 : The synapse secret & configMap for the hook, so that they are created before the job
50+
- -10 : The initSecret hook generating secrets used by the syn2mas job
51+
- -5 : The MAS & synapse secret & configMap for the hook, so that they are created before the job
4752
- 0 : The job itself, so that it is run after the secrets and configs are created &
4853
*/}}
4954
"helm.sh/hook-weight": "0"

charts/matrix-stack/templates/matrix-authentication-service/syn2mas_role.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ metadata:
1717
"helm.sh/hook": pre-install,pre-upgrade
1818
{{- /*
1919
Hook Weights are
20-
- -10 : The initSecret hook generating secrets used by the check config job
21-
- -5 : The synapse secret & configMap for the hook, so that they are created before the job
20+
- -10 : The initSecret hook generating secrets used by the syn2mas job
21+
- -5 : The MAS & synapse secret & configMap for the hook, so that they are created before the job
2222
- 0 : The job itself, so that it is run after the secrets and configs are created &
2323
*/}}
2424
"helm.sh/hook-weight": "0"

charts/matrix-stack/templates/matrix-authentication-service/syn2mas_rolebinding.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ metadata:
1818
"helm.sh/hook": pre-install,pre-upgrade
1919
{{- /*
2020
Hook Weights are
21-
- -10 : The initSecret hook generating secrets used by the check config job
22-
- -5 : The synapse secret & configMap for the hook, so that they are created before the job
21+
- -10 : The initSecret hook generating secrets used by the syn2mas job
22+
- -5 : The MAS & synapse secret & configMap for the hook, so that they are created before the job
2323
- 0 : The job itself, so that it is run after the secrets and configs are created &
2424
*/}}
2525
"helm.sh/hook-weight": "0"

0 commit comments

Comments
 (0)