| 1 | apiVersion: batch/v1 |
| 2 | kind: Job |
| 3 | metadata: |
| 4 | name: {{ .Release.Name }}-uninstall-hook |
| 5 | annotations: |
| 6 | "helm.sh/hook": pre-delete |
| 7 | "helm.sh/hook-delete-policy": hook-succeeded |
| 8 | spec: |
| 9 | template: |
| 10 | spec: |
| 11 | restartPolicy: Never |
| 12 | containers: |
| 13 | - name: uninstall |
| 14 | image: busybox |
| 15 | command: ["sh", "-c", "echo uninstall"] |