From a6d4c5f7bcda1c9a78e17a23816f3dc2b10e1e41 Mon Sep 17 00:00:00 2001 From: Rimantas Ragainis Date: Tue, 14 Nov 2023 13:11:30 +0200 Subject: [PATCH] Add priorityClassName, fix typePrefixes (#3932) Signed-off-by: Rimantas Ragainis Co-authored-by: Rico Pahlisch Signed-off-by: Sacha --- charts/prometheus-stackdriver-exporter/Chart.yaml | 2 +- .../templates/deployment.yaml | 5 ++++- charts/prometheus-stackdriver-exporter/values.yaml | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/charts/prometheus-stackdriver-exporter/Chart.yaml b/charts/prometheus-stackdriver-exporter/Chart.yaml index 25ec675840d6..d49fb67b836e 100644 --- a/charts/prometheus-stackdriver-exporter/Chart.yaml +++ b/charts/prometheus-stackdriver-exporter/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Stackdriver exporter for Prometheus name: prometheus-stackdriver-exporter -version: 4.4.0 +version: 4.4.1 appVersion: v0.14.1 home: https://www.stackdriver.com/ sources: diff --git a/charts/prometheus-stackdriver-exporter/templates/deployment.yaml b/charts/prometheus-stackdriver-exporter/templates/deployment.yaml index 5125c9505b90..61cf8462df0a 100644 --- a/charts/prometheus-stackdriver-exporter/templates/deployment.yaml +++ b/charts/prometheus-stackdriver-exporter/templates/deployment.yaml @@ -37,6 +37,9 @@ spec: - name: {{ . }} {{- end }} {{- end }} + {{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName }} + {{- end }} serviceAccount: {{ template "stackdriver-exporter.serviceAccountName" . }} serviceAccountName: {{ template "stackdriver-exporter.serviceAccountName" . }} restartPolicy: {{ .Values.restartPolicy }} @@ -69,7 +72,7 @@ spec: - --google.project-id={{ .Values.stackdriver.projectId }} - --monitoring.metrics-interval={{ .Values.stackdriver.metrics.interval }} - --monitoring.metrics-offset={{ .Values.stackdriver.metrics.offset }} - - --monitoring.metrics-type-prefixes={{ .Values.stackdriver.metrics.typePrefixes }} + - --monitoring.metrics-type-prefixes={{ .Values.stackdriver.metrics.typePrefixes | replace " " "" }} {{- range .Values.stackdriver.metrics.filters }} - --monitoring.filters={{ . }} {{- end }} diff --git a/charts/prometheus-stackdriver-exporter/values.yaml b/charts/prometheus-stackdriver-exporter/values.yaml index 0eb38918f5e3..89bc8243d6ac 100644 --- a/charts/prometheus-stackdriver-exporter/values.yaml +++ b/charts/prometheus-stackdriver-exporter/values.yaml @@ -117,6 +117,9 @@ tolerations: [] # value: "value" # effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)" +## Pod priority class +## +priorityClassName: "" ## Service Account ##