From 2e1c54855eaf823124e3d4e9e95e6d61b80cfcb4 Mon Sep 17 00:00:00 2001 From: Jeff Bachtel Date: Wed, 30 Oct 2019 14:25:34 -0600 Subject: [PATCH] Add namespace option to example kubectl command Signed-off-by: Jeff Bachtel --- pkg/chartutil/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/chartutil/create.go b/pkg/chartutil/create.go index 6f0b38c05..c67cde04f 100644 --- a/pkg/chartutil/create.go +++ b/pkg/chartutil/create.go @@ -324,7 +324,7 @@ const defaultNotes = `1. Get the application URL by running these commands: {{- else if contains "ClusterIP" .Values.service.type }} export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include ".name" . }},app.kubernetes.io/instance={{ .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:80 + kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 {{- end }} `