Skip to content

Commit

Permalink
Fix Helm hook trigger formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sd109 committed Aug 9, 2024
1 parent 0e27fd6 commit 0b5c29a
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions danswer-azimuth/templates/hooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ spec:
- --all
restartPolicy: Never
serviceAccountName: default

---
# Until https://github.com/unoplat/vespa-helm-charts/pull/23
# is merged, we need to patch vespa stateful set after deployment
# so that service label selectors match correctly.
Expand All @@ -86,16 +86,13 @@ spec:
# deployment to trigger a retry on the Vespa setup by the API pod
# after labels are corrected.
# Use three separate hooks with different hook-weights to control ordering.
---
apiVersion: batch/v1
kind: Job
metadata:
name: vespa-label-updater
namespace: {{ .Release.Name }}
annotations:
helm.sh/hook: post-install
helm.sh/hook: post-upgrade
helm.sh/hook: post-rollback
helm.sh/hook: post-install,post-upgrade,post-rollback
helm.sh/hook-weight: "1"
helm.sh/hook-delete-policy: hook-succeeded
spec:
Expand All @@ -121,9 +118,7 @@ metadata:
name: vespa-waiter
namespace: {{ .Release.Name }}
annotations:
helm.sh/hook: post-install
helm.sh/hook: post-upgrade
helm.sh/hook: post-rollback
helm.sh/hook: post-install,post-upgrade,post-rollback
helm.sh/hook-weight: "2"
helm.sh/hook-delete-policy: hook-succeeded
spec:
Expand All @@ -148,9 +143,7 @@ metadata:
name: danswer-api-restarter
namespace: {{ .Release.Name }}
annotations:
helm.sh/hook: post-install
helm.sh/hook: post-upgrade
helm.sh/hook: post-rollback
helm.sh/hook: post-install,post-upgrade,post-rollback
helm.sh/hook-weight: "3"
helm.sh/hook-delete-policy: hook-succeeded
spec:
Expand Down

0 comments on commit 0b5c29a

Please sign in to comment.