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
This commit is contained in:
Olivier HEDIN
2018-05-17 13:54:51 -07:00
committed by k8s-ci-robot
parent d7785c6d1d
commit f527df7dce
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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 }}