Skip to content

Commit

Permalink
Merge pull request #33 from tessig/extra-envs
Browse files Browse the repository at this point in the history
Allow all helm features for extraEnv values
  • Loading branch information
pmint93 authored Mar 22, 2022
2 parents 48d2418 + ed972a9 commit 12c3983
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion charts/metabase/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
description: The easy, open source way for everyone in your company to ask questions
and learn from data.
name: metabase
version: 1.4.2
version: 2.0.0
appVersion: v0.41.6
maintainers:
- name: pmint93
Expand Down
1 change: 0 additions & 1 deletion charts/metabase/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ The following table lists the configurable parameters of the Metabase chart and
| siteUrl | Base URL, useful for serving behind a reverse proxy | null |
| session.maxSessionAge | Session expiration defined in minutes | 20160 |
| session.sessionCookies | When browser is closed, user login session will expire | null |
| envFromSecret | Existing secret with environment variables as KV pairs | null |
| extraEnv | Mapping of extra environment variables | {} |

The above parameters map to the env variables defined in [metabase](http://github.com/metabase/metabase). For more information please refer to the [metabase documentations](https://www.metabase.com/docs/v0.41/operations-guide/environment-variables.html).
10 changes: 2 additions & 8 deletions charts/metabase/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,8 @@ spec:
- name: MB_COOKIE_SAMESITE
value: {{ .Values.session.cookieSameSite | quote }}
{{- end }}
{{- range .Values.extraEnv }}
- name: {{ .name }}
value: {{ .value | quote }}
{{- end }}
{{- if .Values.envFromSecret }}
envFrom:
- secretRef:
name: {{ .Values.envFromSecret }}
{{- if gt (len .Values.extraEnv) 0 }}
{{- .Values.extraEnv | toYaml | nindent 10 }}
{{- end }}
ports:
- containerPort: {{ .Values.service.internalPort }}
Expand Down
8 changes: 5 additions & 3 deletions charts/metabase/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,11 @@ awsEKS:
# - sg-abc123
# - sg-xyz456

envFromSecret: ""
# envFromSecret: your-secret-with-envs

extraEnv: {}
# - name: MB_CHECK_FOR_UPDATES
# value: false
# - name: MB_ADMIN_EMAIL
# valueFrom:
# configMapKeyRef:
# name: metabase
# key: email

0 comments on commit 12c3983

Please sign in to comment.