Skip to content

Commit

Permalink
Add ability to set topologySpreadConstraints for prometheus-snmp-expo…
Browse files Browse the repository at this point in the history
…rter (prometheus-community#4870)

Signed-off-by: Pavel Timofeev <[email protected]>
  • Loading branch information
timp87 authored Sep 28, 2024
1 parent 48bfc62 commit 24979b1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-snmp-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Prometheus SNMP Exporter
name: prometheus-snmp-exporter
version: 5.5.0
version: 5.5.1
appVersion: v0.26.0
home: https://github.com/prometheus/snmp_exporter
sources:
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus-snmp-exporter/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ spec:
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 6 }}
{{- end }}
{{- if .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{ toYaml .Values.topologySpreadConstraints | indent 6 }}
{{- end }}
restartPolicy: {{ .Values.restartPolicy }}
serviceAccountName: {{ template "prometheus-snmp-exporter.serviceAccountName" . }}
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus-snmp-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ spec:
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 6 }}
{{- end }}
{{- if .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{ toYaml .Values.topologySpreadConstraints | indent 6 }}
{{- end }}
restartPolicy: {{ .Values.restartPolicy }}
serviceAccountName: {{ template "prometheus-snmp-exporter.serviceAccountName" . }}
Expand Down
1 change: 1 addition & 0 deletions charts/prometheus-snmp-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ imagePullSecrets: []
nodeSelector: {}
tolerations: []
affinity: {}
topologySpreadConstraints: []

## Assign a PriorityClassName to pods if set
# priorityClassName: ""
Expand Down

0 comments on commit 24979b1

Please sign in to comment.