Commit dbde7485 authored by Waqar Ahmed's avatar Waqar Ahmed

Add upgrade hook where we nuke nextcloud/postgres deployments

parent 02837997
apiVersion: batch/v1
kind: Job
metadata:
name: "pre-upgrade-hook1"
annotations:
"helm.sh/hook": pre-upgrade
"helm.sh/hook-weight": "-1"
"helm.sh/hook-delete-policy": hook-succeeded
spec:
template:
metadata:
name: "pre-upgrade-hook1"
spec:
restartPolicy: Never
serviceAccountName: {{ template "nextcloud.serviceAccountName" }}
containers:
- name: kubectl
image: "bitnami/kubectl:1.19"
command: ["delete" , "deployment", "{{ template "nextcloud.fullname" . }}", "{{ template "nextcloud.fullname" . }}-postgres"]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment