Update deployment.yaml

This commit is contained in:
Alexander Buntakov 2021-06-24 23:08:53 +03:00 committed by GitHub
parent b0a61240eb
commit a88ea2c819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 8 deletions

View File

@ -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 "<CHARTNAME>.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 "<CHARTNAME>.db.environments" . | indent 12 }}
{{- end }}