Skip to content

Commit

Permalink
Merge pull request #73 from oziey88/master
Browse files Browse the repository at this point in the history
feat(secret): support env from secret
  • Loading branch information
pmint93 authored Aug 15, 2023
2 parents 73a24f7 + b4cc060 commit 0d86224
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/metabase/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description:
The easy, open source way for everyone in your company to ask questions
and learn from data.
name: metabase
version: 2.7.6
version: 2.7.7
appVersion: v0.46.6.4
maintainers:
- name: pmint93
Expand Down
1 change: 1 addition & 0 deletions charts/metabase/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,6 @@ The following table lists the configurable parameters of the Metabase chart and
| session.maxSessionAge | Session expiration defined in minutes | 20160 |
| session.sessionCookies | When browser is closed, user login session will expire | null |
| extraEnv | Mapping of extra environment variables | {} |
| envFrom | Mapping of extra environment variables from secret and/or configMap | [] |

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).
7 changes: 7 additions & 0 deletions charts/metabase/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,13 @@ spec:
{{- if gt (len .Values.extraEnv) 0 }}
{{- .Values.extraEnv | toYaml | nindent 10 }}
{{- end }}
{{- if gt (len .Values.envFrom) 0 }}
envFrom:
{{- range .Values.envFrom }}
- {{ .type }}Ref:
name: {{ .name }}
{{- end }}
{{- end }}
ports:
- containerPort: {{ .Values.service.internalPort }}
{{- if .Values.monitoring.enabled }}
Expand Down
6 changes: 6 additions & 0 deletions charts/metabase/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,9 @@ extraEnv: {}
# configMapKeyRef:
# name: metabase
# key: email

envFrom: []
# - type: secret
# name: metabase-secret
# - type: configMap
# name: metabase-cm

0 comments on commit 0d86224

Please sign in to comment.