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
  • Loading branch information
timp87 committed Sep 20, 2024
1 parent 019442a commit 49e375b
Show file tree
Hide file tree
Showing 3 changed files with 6 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/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 49e375b

Please sign in to comment.