Skip to content

Commit

Permalink
[prometheus-postgres-exporter] - introduced priorityClassName (promet…
Browse files Browse the repository at this point in the history
…heus-community#4069)

* introduced priorityClassName

Signed-off-by: Joachim Winkler <[email protected]>

* add suggestions

Signed-off-by: Joachim Winkler <[email protected]>

* remove space

Signed-off-by: Joachim Winkler <[email protected]>

---------

Signed-off-by: Joachim Winkler <[email protected]>
  • Loading branch information
joawin authored and Matiasmct committed Mar 20, 2024
1 parent 1c7aecf commit 322e7b8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-postgres-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "v0.15.0"
description: A Helm chart for prometheus postgres-exporter
name: prometheus-postgres-exporter
version: 5.2.0
version: 5.3.0
home: https://github.com/prometheus-community/postgres_exporter
sources:
- https://github.com/prometheus-community/postgres_exporter
Expand Down
3 changes: 3 additions & 0 deletions charts/prometheus-postgres-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ spec:
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/prometheus-postgres-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ prometheusRule:
# description: replication for {{ template "prometheus-postgres-exporter.fullname" . }} PostgreSQL is lagging by {{ "{{ $value }}" }} hour(s).
# summary: PostgreSQL replication is lagging by {{ "{{ $value }}" }} hour(s).

priorityClassName: ""

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
Expand Down

0 comments on commit 322e7b8

Please sign in to comment.