Added conditional for init container command

This commit is contained in:
2023-07-10 18:46:33 +02:00
parent 04b1992002
commit d252b09a5d
3 changed files with 9 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
variables:
HELM_CHART_VERSION: "99.6.17"
HELM_CHART_VERSION: "99.6.18"
stages:
- deploy

View File

@@ -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:

View File

@@ -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"