Skip to content

Commit

Permalink
Merge pull request #5 from keratin/support-envs-from-secrets
Browse files Browse the repository at this point in the history
Support envs from secrets
  • Loading branch information
obukhov authored Apr 4, 2020
2 parents 97162d9 + f716e8f commit cab322b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion keratin-authn-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ home: https://keratin.tech
icon: https://keratin.tech/pangolin-logo-dark.gif

type: application
version: 0.1.1
version: 0.2.0
appVersion: 1.8.0
maintainers:
- email: [email protected]
Expand Down
10 changes: 10 additions & 0 deletions keratin-authn-server/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,14 @@ Redis master connection string
- name: REDIS_URL
value: {{ .Values.persistence.redisUrl | quote }}
{{- end }}
{{- if $.Values.envFromSecret }}
{{- range $key, $value := $.Values.envFromSecret }}
- name: {{ $value.name }}
valueFrom:
secretKeyRef:
name: {{ $value.secret }}
key: {{ $value.key }}
optional: {{ $value.optional | default false }}
{{- end }}
{{- end }}
{{- end -}}
6 changes: 6 additions & 0 deletions keratin-authn-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ env: {}
# SENTRY_DSN: ""
# AIRBRAKE_CREDENTIALS: ""

envFromSecret: {}
# - name: ENV_NAME
# secret: secret-name
# key: secret-key
# optional: false

podSecurityContext: {}
# fsGroup: 2000

Expand Down

0 comments on commit cab322b

Please sign in to comment.