marketplace/charts/marketplace-integration/templates/post-install.yaml (26 lines of code) (raw):
apiVersion: batch/v1
kind: Job
metadata:
name: "{{.Release.Name}}-post-install"
labels:
heritage: {{.Release.Service | quote }}
release: {{.Release.Name | quote }}
chart: "{{.Chart.Name}}-{{.Chart.Version}}"
annotations:
"helm.sh/hook": post-install
"helm.sh/hook-delete-policy": {{.Values.hookDeletePolicy}}
"helm.sh/hook-weight": "30"
spec:
template:
spec:
serviceAccount: "{{.Values.service_account}}"
restartPolicy: Never
containers:
- name: post-install-job
imagePullPolicy: "{{.Values.imagePullPolicy}}"
image: "{{.Values.image}}"
command:
- /bin/post-install.sh
- --name={{.Release.Name}}
- --namespace={{.Release.Namespace}}
backoffLimit: 0