Added conditional for init container command
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
variables:
|
||||
HELM_CHART_VERSION: "99.6.17"
|
||||
HELM_CHART_VERSION: "99.6.18"
|
||||
|
||||
stages:
|
||||
- deploy
|
||||
|
||||
@@ -84,7 +84,14 @@ spec:
|
||||
name: {{ include "..fullname" . }}-db-auth
|
||||
- secretRef:
|
||||
name: global-secrets
|
||||
{{- if (.Values.site.container_base | default "debian" ) == "debian" }}
|
||||
command: [ "/init-go/init-go" ]
|
||||
{{- else }}
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- /init-go/init-go
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: wordpress
|
||||
securityContext:
|
||||
|
||||
@@ -63,6 +63,7 @@ storage:
|
||||
# localPath: /app/web/app/uploads
|
||||
|
||||
site:
|
||||
# container_base: debian
|
||||
# The name of the repository/composerpackage/dockerimage
|
||||
# Default: domain.replace('.', '-')
|
||||
# name: "customer-tld"
|
||||
|
||||
Reference in New Issue
Block a user