From 1a9a385e3c1cb04b1bcd266df1b334561602e545 Mon Sep 17 00:00:00 2001 From: G Rajesh Date: Wed, 27 Nov 2024 00:07:19 +0530 Subject: [PATCH] [prometheus-elasticsearch-exporter] Bugfix for NOTES.txt (#5022) * Update NOTES.txt New line character is causing issues while deploying the chart. Signed-off-by: G Rajesh * bump up the version Signed-off-by: G Rajesh --------- Signed-off-by: G Rajesh --- charts/prometheus-elasticsearch-exporter/Chart.yaml | 2 +- charts/prometheus-elasticsearch-exporter/templates/NOTES.txt | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/charts/prometheus-elasticsearch-exporter/Chart.yaml b/charts/prometheus-elasticsearch-exporter/Chart.yaml index df964df652e9..567506055468 100644 --- a/charts/prometheus-elasticsearch-exporter/Chart.yaml +++ b/charts/prometheus-elasticsearch-exporter/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: Elasticsearch stats exporter for Prometheus name: prometheus-elasticsearch-exporter -version: 6.5.0 +version: 6.5.1 kubeVersion: ">=1.19.0-0" appVersion: "v1.8.0" home: https://github.com/prometheus-community/elasticsearch_exporter diff --git a/charts/prometheus-elasticsearch-exporter/templates/NOTES.txt b/charts/prometheus-elasticsearch-exporter/templates/NOTES.txt index cb59bd764ee9..a5b3896c940d 100644 --- a/charts/prometheus-elasticsearch-exporter/templates/NOTES.txt +++ b/charts/prometheus-elasticsearch-exporter/templates/NOTES.txt @@ -9,8 +9,7 @@ export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "elasticsearch-exporter.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') echo http://$SERVICE_IP:{{ .Values.service.httpPort }}{{ .Values.web.path }} {{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ template - "elasticsearch-exporter.name" . }}" -o jsonpath="{.items[0].metadata.name}") + export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ template "elasticsearch-exporter.name" . }}" -o jsonpath="{.items[0].metadata.name}") kubectl port-forward $POD_NAME {{ .Values.service.httpPort }}:{{ .Values.service.httpPort }} --namespace {{ .Release.Namespace }} echo "Visit http://127.0.0.1:{{ .Values.service.httpPort }}{{ .Values.web.path }} to use your application"