From a88ea2c819cef6e4fb832ea3a71b536253c71b28 Mon Sep 17 00:00:00 2001 From: Alexander Buntakov Date: Thu, 24 Jun 2021 23:08:53 +0300 Subject: [PATCH] Update deployment.yaml --- starters/touchin-server/templates/deployment.yaml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/starters/touchin-server/templates/deployment.yaml b/starters/touchin-server/templates/deployment.yaml index 0bdb7cb..aec857d 100644 --- a/starters/touchin-server/templates/deployment.yaml +++ b/starters/touchin-server/templates/deployment.yaml @@ -38,20 +38,19 @@ spec: {{- if and .Values.db .Values.db.create }} - name: "{{ .Chart.Name }}-create-db" image: {{ .Values.db.image }} - command: - - "sh" - - "-c" - - "create {{ $dbName }}" + args: + - "create" + - "{{ $dbName }}" env: {{- include ".db.environments" . | indent 12 }} {{- end }} {{- if and .Values.db .Values.db.copy }} - name: "{{ .Chart.Name }}-copy-db" image: {{ .Values.db.image }} - command: - - "sh" - - "-c" - - "copy {{ .Values.db.name }} {{ $dbName }}" + args: + - "copy" + - "{{ .Values.db.name }}" + - "{{ $dbName }}" env: {{- include ".db.environments" . | indent 12 }} {{- end }}