Fix bug: cannot re-run helm uninstallation if the first one failed and cannot fetch logs of failed uninstalltion job

Longhorn-4711

Signed-off-by: Phan Le <phan.le@suse.com>
This commit is contained in:
Phan Le 2022-10-12 19:03:31 -07:00 committed by David Ko
parent 994ef67d21
commit fca7f3a9a0

View File

@ -3,7 +3,7 @@ kind: Job
metadata:
annotations:
"helm.sh/hook": pre-delete
"helm.sh/hook-delete-policy": hook-succeeded
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
name: longhorn-uninstall
namespace: {{ include "release_namespace" . }}
labels: {{- include "longhorn.labels" . | nindent 4 }}
@ -30,7 +30,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
restartPolicy: OnFailure
restartPolicy: Never
{{- if .Values.privateRegistry.registrySecret }}
imagePullSecrets:
- name: {{ .Values.privateRegistry.registrySecret }}