From f527df7dce90aeb673c237942bc4bbb739ab4055 Mon Sep 17 00:00:00 2001 From: Olivier HEDIN Date: Thu, 17 May 2018 22:54:51 +0200 Subject: [PATCH] add a component selector to make sure to get the ID of the server POD (#5540) * add a component selector to make sure to get the ID of the server POD * Update Chart.yaml --- incubator/drone/Chart.yaml | 2 +- incubator/drone/templates/NOTES.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/incubator/drone/Chart.yaml b/incubator/drone/Chart.yaml index 724abe5ec0..7d00c979b3 100755 --- a/incubator/drone/Chart.yaml +++ b/incubator/drone/Chart.yaml @@ -1,7 +1,7 @@ name: drone home: https://drone.io/ icon: https://drone.io/apple-touch-icon.png -version: 1.0.3 +version: 1.0.4 appVersion: 0.8.4 description: Drone is a Continuous Delivery system built on container technology keywords: diff --git a/incubator/drone/templates/NOTES.txt b/incubator/drone/templates/NOTES.txt index 1ef54b11f2..8ae5a532da 100644 --- a/incubator/drone/templates/NOTES.txt +++ b/incubator/drone/templates/NOTES.txt @@ -27,7 +27,7 @@ Get the Drone URL by running: {{- else if contains "ClusterIP" .Values.service.type }} Get the Drone URL by running: - export POD_NAME=$(kubectl get pods -n {{ .Release.Namespace }} -l "app={{ template "drone.name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") + export POD_NAME=$(kubectl get pods -n {{ .Release.Namespace }} -l "component=server,app={{ template "drone.name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") echo http://127.0.0.1:8000/ kubectl -n {{ .Release.Namespace }} port-forward $POD_NAME 8000:8000 {{- end }}