Skip to content

Commit 5a260d0

Browse files
author
Andrey Klimentyev
authored
Merge pull request deckhouse#38 from Thorndike/master
command line options configurable
2 parents e5aa2fb + d9abd85 commit 5a260d0

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

helm/k8s-image-availability-exporter/templates/deployment.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,19 @@ spec:
2121
spec:
2222
containers:
2323
- name: k8s-image-availability-exporter
24-
args: ["--bind-address=:8080"]
24+
{{- if .Values.k8sImageAvailabilityExporter.args }}
25+
args:
26+
{{- range .Values.k8sImageAvailabilityExporter.args }}
27+
- {{ . }}
28+
{{- end }}
29+
{{- end }}
30+
{{- if .Values.k8sImageAvailabilityExporter.env }}
31+
env:
32+
{{- range .Values.k8sImageAvailabilityExporter.env }}
33+
- name: {{ .name }}
34+
value: {{ .value }}
35+
{{- end }}
36+
{{- end }}
2537
ports:
2638
- containerPort: 8080
2739
name: http

helm/k8s-image-availability-exporter/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ k8sImageAvailabilityExporter:
55
pullPolicy: IfNotPresent
66
replicas: 1
77
resources: {}
8-
8+
args:
9+
- --bind-address=:8080
10+
911
serviceMonitor:
1012
enabled: false
1113
interval: 15s

0 commit comments

Comments
 (0)