File tree 3 files changed +23
-0
lines changed
charts/prometheus-smartctl-exporter
3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ {{- if ne .Values.drivedb "" }}
2
+ apiVersion : v1
3
+ kind : ConfigMap
4
+ metadata :
5
+ name : {{ template "prometheus-smartctl-exporter.fullname" . }}-drivedb
6
+ labels :
7
+ {{- include "prometheus-smartctl-exporter.labels" . | nindent 4 }}
8
+ data :
9
+ smart_drivedb.h : |
10
+ {{- .Values.drivedb | nindent 4 }}
11
+ {{- end }}
Original file line number Diff line number Diff line change 59
59
volumeMounts :
60
60
- mountPath : /hostdev
61
61
name : dev
62
+ {{- if ne $global.Values.drivedb "" }}
63
+ - name : config-volume
64
+ mountPath : /etc/smart_drivedb.h
65
+ subPath : smart_drivedb.h
66
+ {{- end }}
62
67
dnsPolicy : ClusterFirst
63
68
hostNetwork : true
64
69
restartPolicy : Always
67
72
- hostPath :
68
73
path : /dev
69
74
name : dev
75
+ {{- if ne $global.Values.drivedb "" }}
76
+ - name : config-volume
77
+ configMap :
78
+ name : {{ template "prometheus-smartctl-exporter.fullname" $global }}-drivedb
79
+ {{- end }}
70
80
{{- with $item.nodeSelector }}
71
81
nodeSelector :
72
82
{{ toYaml . | indent 8 }}
Original file line number Diff line number Diff line change @@ -84,3 +84,5 @@ service:
84
84
enabled : false
85
85
ipFamilies : ["IPv6", "IPv4"]
86
86
ipFamilyPolicy : " PreferDualStack"
87
+
88
+ drivedb : " "
You can’t perform that action at this time.
0 commit comments