Skip to content

Commit

Permalink
feat(helm): make container args configurable (#54)
Browse files Browse the repository at this point in the history
This enables the usage of the custom container args like the
`--resource-labels` flag introduced in
#53.
  • Loading branch information
martinohmann authored May 22, 2024
1 parent 591e86f commit 46225c4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/spotinst-metrics-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: spotinst-metrics-exporter
description: A prometheus exporter for metrics from Spotinst
type: application
version: 0.2.3
appVersion: "v0.2.3"
version: 0.2.4
appVersion: "v0.2.4"
4 changes: 4 additions & 0 deletions charts/spotinst-metrics-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ spec:
envFrom:
- secretRef:
name: {{ include "spotinst-metrics-exporter.fullname" . }}
{{- with .Values.args }}
args:
{{- toYaml . | nindent 12 }}
{{- end }}
ports:
- name: http
containerPort: 8080
Expand Down
2 changes: 2 additions & 0 deletions charts/spotinst-metrics-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ affinity: {}
spotinst:
account: ""
token: ""

args: []

0 comments on commit 46225c4

Please sign in to comment.