From b1dc93cc61a59f0f95ffd60bba803bc84d70122d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Rodr=C3=ADguez=20Hern=C3=A1ndez?= Date: Sat, 29 Sep 2018 19:02:42 +0200 Subject: [PATCH] [stable/kubeless] Improve getting LoadBalancer address in chart NOTES.txt (#8032) Signed-off-by: Carlos Rodriguez Hernandez --- incubator/kubeless/Chart.yaml | 2 +- incubator/kubeless/templates/NOTES.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/incubator/kubeless/Chart.yaml b/incubator/kubeless/Chart.yaml index b07574c1e6..5ac4988ad6 100644 --- a/incubator/kubeless/Chart.yaml +++ b/incubator/kubeless/Chart.yaml @@ -1,5 +1,5 @@ name: kubeless -version: 1.0.5 +version: 1.0.6 appVersion: v1.0.0-alpha.3 description: Kubeless is a Kubernetes-native serverless framework. It runs on top of your Kubernetes cluster and allows you to deploy small unit of code without having to build container images. icon: https://cloud.githubusercontent.com/assets/4056725/25480209/1d5bf83c-2b48-11e7-8db8-bcd650f31297.png diff --git a/incubator/kubeless/templates/NOTES.txt b/incubator/kubeless/templates/NOTES.txt index a1c3d015fe..762d9a47d2 100644 --- a/incubator/kubeless/templates/NOTES.txt +++ b/incubator/kubeless/templates/NOTES.txt @@ -6,7 +6,7 @@ NOTE: It may take a few minutes for the LoadBalancer IP to be available. Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w ui' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "kubeless.fullname" . }}-ui -o jsonpath='{.status.loadBalancer.ingress[0].ip}') + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "kubeless.fullname" . }}-ui --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") export SERVICE_PORT=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "kubeless.fullname" . }}-ui -o jsonpath='{.spec.ports[0].port}') echo http://$SERVICE_IP:$SERVICE_PORT/ {{- else if contains "ClusterIP" .Values.ui.service.type }}