fix(wordpress) update php-config variable (#5945)

* fix(wordpress) update php-config variable

* change php-config to php

* fix config

* fix confmap

Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
Xstar97
2023-01-02 10:37:44 +02:00
committed by GitHub
co-authored by Stavros Kois
parent e7d775c17b
commit f39157ac79
2 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/wordpress - https://github.com/truecharts/charts/tree/master/charts/stable/wordpress
- https://hub.docker.com/_/wordpress - https://hub.docker.com/_/wordpress
- https://www.wordpress.org - https://www.wordpress.org
version: 1.0.11 version: 1.1.0
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- website - website
+9 -8
View File
@@ -30,29 +30,30 @@ data:
WORDPRESS_SMTP_PORT: {{ .Values.smtp.port | quote }} WORDPRESS_SMTP_PORT: {{ .Values.smtp.port | quote }}
{{- end }} {{- end }}
{{- $php := get .Values "php-config" }}
{{/* PHP */}} {{/* PHP */}}
{{- with .Values.wordpress.PHP_ENABLE_OPCACHE }} {{- with $php.PHP_ENABLE_OPCACHE }}
PHP_ENABLE_OPCACHE: {{ . | quote }} PHP_ENABLE_OPCACHE: {{ . | quote }}
{{- end }} {{- end }}
{{- with .Values.wordpress.PHP_EXPOSE_PHP }} {{- with $php.PHP_EXPOSE_PHP }}
PHP_EXPOSE_PHP: {{ . | quote }} PHP_EXPOSE_PHP: {{ . | quote }}
{{- end }} {{- end }}
{{- with .Values.wordpress.PHP_MAX_EXECUTION_TIME }} {{- with $php.PHP_MAX_EXECUTION_TIME }}
PHP_MAX_EXECUTION_TIME: {{ . | quote }} PHP_MAX_EXECUTION_TIME: {{ . | quote }}
{{- end }} {{- end }}
{{- with .Values.wordpress.PHP_MAX_INPUT_TIME }} {{- with $php.PHP_MAX_INPUT_TIME }}
PHP_MAX_INPUT_TIME: {{ . | quote }} PHP_MAX_INPUT_TIME: {{ . | quote }}
{{- end }} {{- end }}
{{- with .Values.wordpress.PHP_MAX_INPUT_VARS }} {{- with $php.PHP_MAX_INPUT_VARS }}
PHP_MAX_INPUT_VARS: {{ . | quote }} PHP_MAX_INPUT_VARS: {{ . | quote }}
{{- end }} {{- end }}
{{- with .Values.wordpress.PHP_MEMORY_LIMIT }} {{- with $php.PHP_MEMORY_LIMIT }}
PHP_MEMORY_LIMIT: {{ . | quote }} PHP_MEMORY_LIMIT: {{ . | quote }}
{{- end }} {{- end }}
{{- with .Values.wordpress.PHP_POST_MAX_SIZE }} {{- with $php.PHP_POST_MAX_SIZE }}
PHP_POST_MAX_SIZE: {{ . | quote }} PHP_POST_MAX_SIZE: {{ . | quote }}
{{- end }} {{- end }}
{{- with .Values.wordpress.PHP_UPLOAD_MAX_FILESIZE }} {{- with $php.PHP_UPLOAD_MAX_FILESIZE }}
PHP_UPLOAD_MAX_FILESIZE: {{ . | quote }} PHP_UPLOAD_MAX_FILESIZE: {{ . | quote }}
{{- end }} {{- end }}
--- ---