Closed ayush-sachdev closed 1 year ago
Hello @ayush-sachdev ,
I was not able to reproduce the error by applying the following change in the chart:
diff --git a/bitnami/wordpress/values.yaml b/bitnami/wordpress/values.yaml
index ab5b2979f..faa2c0b6f 100644
--- a/bitnami/wordpress/values.yaml
+++ b/bitnami/wordpress/values.yaml
@@ -230,7 +230,11 @@ args: []
## - name: FOO
## value: "bar"
##
-extraEnvVars: []
+extraEnvVars:
+ - name: WORDPRESS_EXTRA_WP_CONFIG_CONTENT
+ value: "define( 'WP_AUTO_UPDATE_CORE', false ); \
+ define( 'WP_CACHE', true); \
+ define( 'WPCACHEHOME', '/bitnami/wordpress/wp-content/plugins/wp-super-cache/'); \ "
## @param extraEnvVarsCM Name of existing ConfigMap containing extra env vars
##
extraEnvVarsCM: ""
With this. result:
$ kubectl exec wp-wordpress-58677795f8-tp96b -- cat /opt/bitnami/wordpress/wp-config.php | grep CACHE
define( 'WP_AUTO_UPDATE_CORE', false ); define( 'WP_CACHE', true); define( 'WPCACHEHOME', '/bitnami/wordpress/wp-content/plugins/wp-super-cache/');
Could you please double-check it by removing the existing PVC?
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.
Name and Version
bitnami/wordpress:latest
What architecture are you using?
amd64
What steps will reproduce the bug?
Set up Kubernetes pods using bitnami/wordpress:latest docker image and add
WORDPRESS_EXTRA_WP_CONFIG_CONTENT
in the deployment manifest file.Are you using any custom parameters or values?
I am adding Extra config environment in deployment manifest file.
What is the expected behavior?
We should be able to see the added extra WordPress config values in wp-config.php file.
What do you see instead?
I am using WordPress docker image to build my Kubernetes application. But when I am adding value to the env variable
WORDPRESS_EXTRA_WP_CONFIG_CONTENT
they are not appending in the wp-config.php. I can see the values inside the pod but not in the wp-config.php file.