update hook weight order and give descriptive names to jobs

This commit is contained in:
Max Roby 2023-11-23 11:35:17 +01:00 committed by Chris Lu
parent 0aea4dc1f3
commit 5db0064ffe
2 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@
apiVersion: batch/v1
kind: Job
metadata:
name: "{{ $.Release.Name }}"
name: "{{ $.Release.Name }}-bucket-hook"
labels:
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}

View file

@ -5,13 +5,13 @@
apiVersion: batch/v1
kind: Job
metadata:
name: "{{ $.Release.Name }}"
name: "{{ $.Release.Name }}-user-hook"
labels:
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
annotations:
"helm.sh/hook": post-install
"helm.sh/hook-weight": "-5"
"helm.sh/hook-weight": "-4"
"helm.sh/hook-delete-policy": hook-succeeded
spec:
template: