From 6958bc4552e62922894df2508e2bf60aa62eae97 Mon Sep 17 00:00:00 2001 From: yurhasko Date: Mon, 23 Dec 2024 18:45:25 +0200 Subject: [PATCH] [prometheus-postgres-exporter] added namespace by default to PostgreSQL exporter kubectl port-forward command Signed-off-by: yurhasko --- charts/prometheus-postgres-exporter/Chart.yaml | 2 +- charts/prometheus-postgres-exporter/templates/NOTES.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/prometheus-postgres-exporter/Chart.yaml b/charts/prometheus-postgres-exporter/Chart.yaml index ad1232ab68d2..497e26cded22 100644 --- a/charts/prometheus-postgres-exporter/Chart.yaml +++ b/charts/prometheus-postgres-exporter/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: "v0.16.0" description: A Helm chart for prometheus postgres-exporter name: prometheus-postgres-exporter -version: 6.8.0 +version: 6.8.1 home: https://github.com/prometheus-community/postgres_exporter sources: - https://github.com/prometheus-community/postgres_exporter diff --git a/charts/prometheus-postgres-exporter/templates/NOTES.txt b/charts/prometheus-postgres-exporter/templates/NOTES.txt index 5c328b9354a3..a7bce03d3db0 100644 --- a/charts/prometheus-postgres-exporter/templates/NOTES.txt +++ b/charts/prometheus-postgres-exporter/templates/NOTES.txt @@ -11,5 +11,5 @@ {{- else if contains "ClusterIP" .Values.service.type }} export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "prometheus-postgres-exporter.name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") echo "Visit http://127.0.0.1:8080 to use your application" - kubectl port-forward $POD_NAME 8080:9187 + kubectl port-forward $POD_NAME 8080:9187 --namespace {{ .Release.Namespace }} {{- end }}