Browse Source

update hook weight order and give descriptive names to jobs

pull/5049/head
Max Roby 1 year ago
committed by Chris Lu
parent
commit
5db0064ffe
  1. 2
      k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml
  2. 4
      k8s/charts/seaweedfs/templates/post-install-user-hook.yaml

2
k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml

@ -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 }}

4
k8s/charts/seaweedfs/templates/post-install-user-hook.yaml

@ -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:

Loading…
Cancel
Save