post-delete-hook-config-map.yaml 489 B

123456789101112131415
  1. {{- if .Values.postDelete.enabled }}
  2. apiVersion: v1
  3. kind: ConfigMap
  4. metadata:
  5. name: {{ template "rancher.fullname" . }}-post-delete
  6. namespace: {{ .Release.Namespace }}
  7. labels: {{ include "rancher.labels" . | nindent 4 }}
  8. annotations:
  9. "helm.sh/hook": post-delete
  10. "helm.sh/hook-weight": "1"
  11. "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded,hook-failed
  12. data:
  13. post-delete-hook.sh: |-
  14. {{ $.Files.Get "scripts/post-delete-hook.sh" | indent 4 }}
  15. {{- end }}