From 45eaa99ed4aee0d81c6cc90920ff5f5bbcc7cb5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Rodr=C3=ADguez=20Hern=C3=A1ndez?= Date: Mon, 1 Oct 2018 09:38:01 +0200 Subject: [PATCH] =?UTF-8?q?[stable/dokuwiki]=20Improve=20getting=20LoadBal?= =?UTF-8?q?ancer=20address=20in=20chart=20NOTES=E2=80=A6=20(#8017)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [stable/dokuwiki] Improve getting LoadBalancer address in chart NOTES.txt Signed-off-by: Carlos Rodriguez Hernandez * Fix go template inside go template Signed-off-by: Carlos Rodriguez Hernandez --- stable/dokuwiki/Chart.yaml | 2 +- stable/dokuwiki/templates/NOTES.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/dokuwiki/Chart.yaml b/stable/dokuwiki/Chart.yaml index 0958f505bd..e7f522915f 100644 --- a/stable/dokuwiki/Chart.yaml +++ b/stable/dokuwiki/Chart.yaml @@ -1,5 +1,5 @@ name: dokuwiki -version: 3.0.1 +version: 3.0.2 appVersion: 0.20180422.201805030840 description: DokuWiki is a standards-compliant, simple to use wiki optimized for creating documentation. It is targeted at developer teams, workgroups, and small companies. diff --git a/stable/dokuwiki/templates/NOTES.txt b/stable/dokuwiki/templates/NOTES.txt index ee525cdf8a..6b41468fe7 100644 --- a/stable/dokuwiki/templates/NOTES.txt +++ b/stable/dokuwiki/templates/NOTES.txt @@ -25,7 +25,7 @@ ** Please ensure an external IP is associated to the {{ template "dokuwiki.fullname" . }} service before proceeding ** ** Watch the status using: kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "dokuwiki.fullname" . }} ** - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "dokuwiki.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "dokuwiki.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") echo "URL: http://$SERVICE_IP/" {{- else if contains "ClusterIP" .Values.service.type }}