From 8ad6611112a75b2759ba04085832fa1682ce92c8 Mon Sep 17 00:00:00 2001 From: Micah Hausler Date: Tue, 16 Jun 2020 16:46:04 -0700 Subject: [PATCH] [stable/grafana] Fixed label selector in install note (#22825) Signed-off-by: Micah Hausler --- stable/grafana/Chart.yaml | 2 +- stable/grafana/templates/NOTES.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/grafana/Chart.yaml b/stable/grafana/Chart.yaml index c4cbf7a9ccd8..e9a3dbf5d6ed 100644 --- a/stable/grafana/Chart.yaml +++ b/stable/grafana/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: grafana -version: 5.2.0 +version: 5.2.1 appVersion: 7.0.3 kubeVersion: "^1.8.0-0" description: The leading tool for querying and visualizing time series and metrics. diff --git a/stable/grafana/templates/NOTES.txt b/stable/grafana/templates/NOTES.txt index 7eab9a952f7e..1fc8436d95a9 100644 --- a/stable/grafana/templates/NOTES.txt +++ b/stable/grafana/templates/NOTES.txt @@ -39,7 +39,7 @@ export SERVICE_IP=$(kubectl get svc --namespace {{ template "grafana.namespace" . }} {{ template "grafana.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') http://$SERVICE_IP:{{ .Values.service.port -}} {{ else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ template "grafana.namespace" . }} -l "app={{ template "grafana.name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") + export POD_NAME=$(kubectl get pods --namespace {{ template "grafana.namespace" . }} -l "app.kubernetes.io/name={{ template "grafana.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") kubectl --namespace {{ template "grafana.namespace" . }} port-forward $POD_NAME 3000 {{- end }} {{- end }}