Skip to content

Commit

Permalink
Add optional environment variables to opencost-ui container (#149)
Browse files Browse the repository at this point in the history
Co-authored-by: ner <[email protected]>
Co-authored-by: Matt Ray <[email protected]>
  • Loading branch information
3 people authored Nov 29, 2023
1 parent c381ccb commit a75834f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/opencost/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ spec:
ports:
- containerPort: 9090
name: http-ui
{{- with .Values.opencost.ui.extraEnv }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
resources: {{- toYaml .Values.opencost.ui.resources | nindent 12 }}
{{- if .Values.opencost.ui.livenessProbe.enabled }}
livenessProbe:
Expand Down
3 changes: 3 additions & 0 deletions charts/opencost/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ opencost:
# runAsNonRoot: true
# runAsUser: 1000

# -- A list of environment variables to be added to the pod
extraEnv: []

# -- A list of volume mounts to be added to the pod
extraVolumeMounts: []

Expand Down

0 comments on commit a75834f

Please sign in to comment.