<p>I am trying to add environment variable to my wordpress helm chart. My values.yml file looks like :</p>
<pre><code>#pvc wordpress
persistence:
  enabled: false

#pvc mariadb
mariadb:
  enabled: false 

externalDatabase:
  host: mysql
  port: 3306
  user: benighil@benighil 
  password: &quot;SomePassword&quot;
  database: bitnami_wordpress

extraEnv:
  - name: &quot;WORDPRESS_DATABASE_SSL_CA_FILE&quot; # &lt;== THIS ONE
    value: /tmp/ca-cert

## Additional volume mounts
## Example: Mount CA file
extraVolumeMounts:
  - name: ca-cert
    mountPath: /tmp

## Additional volumes
## Example: Add secret volume
extraVolumes:
 - name: ca-cert
   secret:
     secretName: ca-cert
</code></pre>
<p>But i generate a template using the following cmd :</p>
<pre><code>helm template wp azure-marketplace/wordpress -n app --create-namespace -f values.yml &gt; template.yml
</code></pre>
<p>and when i search the word : <code>WORDPRESS_DATABASE_SSL_CA_FILE</code> in the file <code>template.yml</code>  :</p>
<p><code>terminal: grep WORDPRESS_DATABASE_SSL_CA_FILE template.yml</code> there is nothing returned !</p>
<p>I would like to know why ?</p>
<p>Thank you in advance!</p>

Mohamed
<p>The correct param is <code>extraEnvVars</code> not <code>extraEnv</code></p>
<pre><code>## @param extraEnvVars Array with extra environment variables to add to the WordPress container
## e.g:
## extraEnvVars:
##   - name: FOO
##     value: &quot;bar&quot;
</code></pre>
<p>so the values should be</p>
<pre><code>extraEnvVars:
  - name: &quot;WORDPRESS_DATABASE_SSL_CA_FILE&quot; # &lt;== THIS ONE
    value: /tmp/ca-cert
</code></pre>
<p><a href="https://github.com/bitnami/azure-marketplace-charts/blob/master/bitnami/wordpress/values.yaml#L225" rel="nofollow noreferrer">https://github.com/bitnami/azure-marketplace-charts/blob/master/bitnami/wordpress/values.yaml#L225</a></p>
<pre><code>helm template wp azure-marketplace/wordpress -f values.yaml | grep &quot;WORDPRESS_DATABASE_SSL_CA_FILE&quot;
</code></pre>
