Skip to content

Commit

Permalink
feat(prometheus-snmp-exporter): add extraVolumes and upgrade version
Browse files Browse the repository at this point in the history
Signed-off-by: tr3mor <[email protected]>
  • Loading branch information
tr3mor committed Nov 28, 2023
1 parent 123dad0 commit 93cb091
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/prometheus-snmp-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
description: Prometheus SNMP Exporter
name: prometheus-snmp-exporter
version: 1.8.1
appVersion: v0.21.0
version: 1.9.0
appVersion: v0.24.1
home: https://github.com/prometheus/snmp_exporter
sources:
- https://github.com/prometheus/snmp_exporter
Expand Down
6 changes: 6 additions & 0 deletions charts/prometheus-snmp-exporter/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ spec:
subPath: {{ .subPath }}
readOnly: {{ .readOnly }}
{{- end }}
{{- with .Values.extraVolumeMounts }}
{{ toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.config }}
- name: configmap-reload
image: "{{ .Values.configmapReload.image.repository }}:{{ .Values.configmapReload.image.tag }}"
Expand Down Expand Up @@ -112,4 +115,7 @@ spec:
secretName: {{ .secretName }}
defaultMode: {{ .defaultMode }}
{{- end }}
{{- with .Values.extraVolumes }}
{{ toYaml . | nindent 8 }}
{{- end }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/prometheus-snmp-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ spec:
subPath: {{ .subPath }}
readOnly: {{ .readOnly }}
{{- end }}
{{- with .Values.extraVolumeMounts }}
{{ toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.config }}
- name: configmap-reload
image: "{{ .Values.configmapReload.image.repository }}:{{ .Values.configmapReload.image.tag }}"
Expand Down Expand Up @@ -122,4 +125,7 @@ spec:
secretName: {{ .secretName }}
defaultMode: {{ .defaultMode }}
{{- end }}
{{- with .Values.extraVolumes }}
{{ toYaml . | nindent 8 }}
{{- end }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/prometheus-snmp-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ extraSecretMounts: []
# readOnly: true
# defaultMode: 420

# Additional volumes, e. g. for secrets used in an extraContainer
extraVolumes: []

# Additional volume mounts for snmp-exporter container
extraVolumeMounts: []

## For RBAC support:
rbac:
# Specifies whether RBAC resources should be created
Expand Down

0 comments on commit 93cb091

Please sign in to comment.