pmint93 / helm-charts

My helm charts
https://pmint93.github.io/helm-charts/
Apache License 2.0
75 stars 74 forks source link

extraEnv variables does not work #60

Closed Hashiphoto closed 1 year ago

Hashiphoto commented 1 year ago

I have set up the following values for the chart:

metabase:
  extraEnv:
    MB_REDIRECT_ALL_REQUESTS_TO_HTTPS: false

However, that environment variable is not getting passed to the pod. I only get the defaults:

JAVA_TIMEZONE : UTC
MB_COLORIZE_LOGS : true
MB_DB_TYPE : h2
MB_EMOJI_IN_LOGS : true
MB_JETTY_HOST : 0.0.0.0
MB_JETTY_PORT : 3000
MB_PASSWORD_COMPLEXITY : normal
MB_PASSWORD_LENGTH : 6

I have tried all sorts of other formats for extraEnv, but haven't gotten any to work. For example

metabase:
  extraEnv:
    - MB_REDIRECT_ALL_REQUESTS_TO_HTTPS: false
metabase:
  extraEnv:
    - name: MB_REDIRECT_ALL_REQUESTS_TO_HTTPS
      value: false

Both result in this error warning: cannot overwrite table with non table for extraEnv (map[]) when running helm template

Any guidance would be appreciated. Thanks!

pmint93 commented 1 year ago

@Hashiphoto You can see values.yaml for example

pmint93 commented 1 year ago

If you follow example but env values still not work, please feedback and I'll re-open the issue