Initial commit
This commit is contained in:
commit
354d7562e5
11 changed files with 352 additions and 0 deletions
25
templates/pre-install-job.yaml
Normal file
25
templates/pre-install-job.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: {{ include "glitchtip.fullname" . }}
|
||||
labels:
|
||||
{{- include "glitchtip.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install,pre-upgrade
|
||||
"helm.sh/hook-delete-policy": hook-succeeded
|
||||
spec:
|
||||
activeDeadlineSeconds: 60
|
||||
template:
|
||||
spec:
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
- name: pre-install-job
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
command: ["./manage.py","migrate"]
|
||||
env:
|
||||
- name: DATABASE_URL
|
||||
- name: SECRET_KEY
|
||||
- name: DEBUG
|
||||
value: "False"
|
||||
- name: STATIC_URL
|
||||
value: /
|
Loading…
Add table
Add a link
Reference in a new issue