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: variables:
HELM_CHART_VERSION: "99.6.17" HELM_CHART_VERSION: "99.6.18"
stages: stages:
- deploy - deploy

View File

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

View File

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