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 c7e2d45
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 c7e2d45

Please sign in to comment.