Skip to content

Commit

Permalink
Order ui-server installer hooks in ocm mode
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Jan 13, 2024
1 parent f30df4d commit 9410df6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion charts/kube-ui-server/templates/ocm-mc/apiregistration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ metadata:
labels:
{{- include "kube-ui-server.labels" . | nindent 4 }}
annotations:
"helm.sh/hook-weight": "3"
"helm.sh/hook": post-install,post-upgrade,post-rollback
# "helm.sh/hook-delete-policy": hook-succeeded,hook-failed
"helm.sh/hook-delete-policy": hook-succeeded,hook-failed
spec:
ttlSecondsAfterFinished: 0
backoffLimit: 3
Expand Down
2 changes: 2 additions & 0 deletions charts/kube-ui-server/templates/ocm-mc/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ metadata:
labels:
{{- include "kube-ui-server.labels" $ | nindent 4 }}
annotations:
"helm.sh/hook-weight": "0"
"helm.sh/hook": post-install,post-upgrade,post-rollback
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded,hook-failed
data:
Expand All @@ -27,6 +28,7 @@ metadata:
labels:
{{- include "kube-ui-server.labels" $ | nindent 4 }}
annotations:
"helm.sh/hook-weight": "1"
"helm.sh/hook": post-install,post-upgrade,post-rollback
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded,hook-failed
spec:
Expand Down
3 changes: 2 additions & 1 deletion charts/kube-ui-server/templates/ocm-mc/svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ metadata:
labels:
{{- include "kube-ui-server.labels" $ | nindent 4 }}
annotations:
"helm.sh/hook-weight": "2"
"helm.sh/hook": post-install,post-upgrade,post-rollback
# "helm.sh/hook-delete-policy": hook-succeeded,hook-failed
"helm.sh/hook-delete-policy": hook-succeeded,hook-failed
spec:
ttlSecondsAfterFinished: 0
backoffLimit: 3
Expand Down

0 comments on commit 9410df6

Please sign in to comment.