Skip to content

Commit

Permalink
fix: use sha in env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsauntson committed Feb 5, 2025
1 parent f1c397c commit 79a9f12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name:
value: {{ .Values.image.tag }}
{{- if .Values.envVars }}
{{- range $name, $val := .Values.envVars }}
- name: {{ $name }}
Expand Down
3 changes: 1 addition & 2 deletions infrastructure/app/chart/energy-apps/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ image:
tag: "main"

# plain env vars. Take precedence over any secrets with the same name!
envVars:
APP_VERSION: {{ .Values.image.tag }}
envVars: {}

# values to store in a secret. Only intended to be set with helm --set at e.g. deployment time!!
secrets:
Expand Down

0 comments on commit 79a9f12

Please sign in to comment.