From 339a1372849da3758b9ab651ce39a382b875b013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Rodr=C3=ADguez=20Hern=C3=A1ndez?= Date: Sat, 29 Sep 2018 18:54:19 +0200 Subject: [PATCH] [stable/wordpress] Improve getting LoadBalancer address in NOTES.txt (#8033) Signed-off-by: Carlos Rodriguez Hernandez --- stable/wordpress/Chart.yaml | 4 ++-- stable/wordpress/templates/NOTES.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stable/wordpress/Chart.yaml b/stable/wordpress/Chart.yaml index ec5ca48097..251efcff49 100644 --- a/stable/wordpress/Chart.yaml +++ b/stable/wordpress/Chart.yaml @@ -1,5 +1,5 @@ name: wordpress -version: 3.0.1 +version: 3.0.2 appVersion: 4.9.8 description: Web publishing platform for building blogs and websites. icon: https://bitnami.com/assets/stacks/wordpress/img/wordpress-stack-220x234.png @@ -15,6 +15,6 @@ home: http://www.wordpress.com/ sources: - https://github.com/bitnami/bitnami-docker-wordpress maintainers: -- name: bitnami-bot +- name: Bitnami email: containers@bitnami.com engine: gotpl diff --git a/stable/wordpress/templates/NOTES.txt b/stable/wordpress/templates/NOTES.txt index 55626e4d17..9f520118b5 100644 --- a/stable/wordpress/templates/NOTES.txt +++ b/stable/wordpress/templates/NOTES.txt @@ -13,7 +13,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 {{ template "fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") echo "WordPress URL: http://$SERVICE_IP/" echo "WordPress Admin URL: http://$SERVICE_IP/admin"