File tree Expand file tree Collapse file tree 4 files changed +35
-4
lines changed
charts/azure-resourcemanager-exporter Expand file tree Collapse file tree 4 files changed +35
-4
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ name: azure-resourcemanager-exporter
33type : application
44description : A Helm chart for azure-resourcemanager-exporter
55home : https://github.com/webdevops/azure-resourcemanager-exporter
6- version : 1.1.1
6+ version : 1.2.0
77# renovate: image=webdevops/azure-resourcemanager-exporter
8- appVersion : 22.11 .0
8+ appVersion : 23.6 .0
99keywords :
1010- azure-resourcemanager-exporter
1111maintainers :
Original file line number Diff line number Diff line change 1+ {{- if not .Values.config.existingConfigMap }}
2+ apiVersion : v1
3+ kind : ConfigMap
4+ metadata :
5+ name : {{ include "azure-resourcemanager-exporter.fullname" . }}
6+ labels :
7+ {{- include "azure-resourcemanager-exporter.labels" . | nindent 4 }}
8+ data :
9+ config.yaml : |- {{ toYaml .Values.config | required "Config must be specified" | nindent 4 }}
10+
11+ {{- end }}
Original file line number Diff line number Diff line change @@ -62,10 +62,20 @@ spec:
6262 {{- with .Values.extraEnv }}
6363 {{- tpl (toYaml .) $ | nindent 12 }}
6464 {{- end }}
65+ {{- if not .Values.config.existingConfigMap }}
66+ - name : CONFIG
67+ value : " /config/config.yaml"
68+ {{- end }}
6569 ports :
6670 - containerPort : 8080
6771 name : http-metrics
6872 protocol : TCP
73+ volumeMounts :
74+ - mountPath : /config/
75+ name : config
76+ {{- with .Values.extraVolumeMounts }}
77+ {{- toYaml . | nindent 12 }}
78+ {{- end }}
6979
7080{{- with .Values.resources }}
7181 resources : {{ toYaml . | nindent 12 }}
8999{{- with .Values.tolerations }}
90100 tolerations : {{ toYaml . | nindent 8 }}
91101{{- end }}
102+ volumes :
103+ - name : config
104+ configMap :
105+ name : {{ .Values.config.existingConfigMap | default (include "azure-resourcemanager-exporter.fullname" .) }}
106+ {{- with .Values.extraVolumes }}
107+ {{- toYaml . | nindent 8 }}
108+ {{- end }}
Original file line number Diff line number Diff line change @@ -31,6 +31,11 @@ secretsEnableTemplateFunctions: false
3131secrets : {}
3232# secretName: secretValue
3333
34+ existingConfigMap : " "
35+ config : {}
36+
37+ extraVolumes : []
38+ extraVolumeMounts : []
3439
3540resources :
3641 limits :
@@ -49,8 +54,6 @@ tolerations: []
4954restartPolicy : Always
5055priorityClassName : " "
5156
52- config : " "
53-
5457startupProbe :
5558 tcpSocket :
5659 port : http-metrics
You can’t perform that action at this time.
0 commit comments