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