Skip to content

Commit

Permalink
feat: make migration command configurable through values (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
echozio authored May 9, 2024
1 parent 6217ec2 commit 3ddd097
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions templates/migration/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ spec:
{{- end }}
image: "{{ .Values.migration.image.repository }}:{{ .Values.migration.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.migration.image.pullPolicy }}
command: [prisma]
args: [db, push, --skip-generate, --schema, /app/schema.prisma]
command: {{ .Values.migration.command | toYaml | nindent 12 }}
{{- if .Values.migration.envFrom }}
envFrom:
{{- toYaml .Values.migration.envFrom | nindent 12 }}
Expand Down
1 change: 1 addition & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,7 @@ migration:
pullPolicy: IfNotPresent
tag: ""
restartPolicy: Never
command: [prisma, db, push, --skip-generate, --schema, /app/schema.prisma]
env: []
envFrom: []
jobAnnotations: {}
Expand Down

0 comments on commit 3ddd097

Please sign in to comment.