fix helm chart for env vars

This commit is contained in:
Luke Robles 2022-04-29 11:37:02 -07:00
parent e1b4293d5e
commit 47be706ece
2 changed files with 10 additions and 4 deletions

View File

@ -38,9 +38,12 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: PYTHONUNBUFFERED
value: "1"
{{- range $key, $value := .Values.env }}
- name: {{ $key }}
value: "{{ $value }}"
{{- end }}
{{- range $key, $value := .Values.secrets }}
- name: {{ $key }}
valueFrom:
secretKeyRef:

View File

@ -8,7 +8,7 @@ image:
repository: ldooks/dragon-bot
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "158"
tag: "159"
imagePullSecrets: []
nameOverride: ""
@ -76,8 +76,11 @@ volumes:
mountPath: /tmp/dale
env:
DRAGON_ENV: prod
PYTHONUNBUFFERED: 1
secrets:
token: discord_token
ffxiv_token: ffxiv_token
gitlab_token: gitlab_token
wolfram_token: wolfram_token
DRAGON_ENV: prod