From 4a71f633a995f9ee692e00a2432d700f14377cae Mon Sep 17 00:00:00 2001 From: jiangrui Date: Mon, 4 Mar 2024 09:54:34 +0800 Subject: [PATCH] Update deployment.yaml --- charts/templates/deployment.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/charts/templates/deployment.yaml b/charts/templates/deployment.yaml index 9acf9b3..a55553b 100644 --- a/charts/templates/deployment.yaml +++ b/charts/templates/deployment.yaml @@ -53,10 +53,8 @@ spec: - name: {{ .Release.Name }}-migrate image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: IfNotPresent - command: - - python - - manage.py - - migrations + args: + - python manage.py makemigrations; python manage.py migrate {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }}