From 92c39c7e6fc32b6582b004741e67c91e4b42e86d Mon Sep 17 00:00:00 2001 From: joawin Date: Fri, 8 Dec 2023 13:56:48 +0100 Subject: [PATCH] [prometheus-postgres-exporter] - introduced priorityClassName (#4069) * introduced priorityClassName Signed-off-by: Joachim Winkler * add suggestions Signed-off-by: Joachim Winkler * remove space Signed-off-by: Joachim Winkler --------- Signed-off-by: Joachim Winkler --- charts/prometheus-postgres-exporter/Chart.yaml | 2 +- charts/prometheus-postgres-exporter/templates/deployment.yaml | 3 +++ charts/prometheus-postgres-exporter/values.yaml | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/prometheus-postgres-exporter/Chart.yaml b/charts/prometheus-postgres-exporter/Chart.yaml index 280648009be1..c04e3bd8b6f7 100644 --- a/charts/prometheus-postgres-exporter/Chart.yaml +++ b/charts/prometheus-postgres-exporter/Chart.yaml @@ -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 diff --git a/charts/prometheus-postgres-exporter/templates/deployment.yaml b/charts/prometheus-postgres-exporter/templates/deployment.yaml index 8635e9237ec1..f233b23a5930 100644 --- a/charts/prometheus-postgres-exporter/templates/deployment.yaml +++ b/charts/prometheus-postgres-exporter/templates/deployment.yaml @@ -180,6 +180,9 @@ spec: affinity: {{ toYaml . | indent 8 }} {{- end }} +{{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName }} +{{- end }} {{- with .Values.tolerations }} tolerations: {{ toYaml . | indent 8 }} diff --git a/charts/prometheus-postgres-exporter/values.yaml b/charts/prometheus-postgres-exporter/values.yaml index 678574154bca..c94c36cf0290 100644 --- a/charts/prometheus-postgres-exporter/values.yaml +++ b/charts/prometheus-postgres-exporter/values.yaml @@ -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