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

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