From deda4728c680e1d4ed30d735f3a24dbaa345d8cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Rodr=C3=ADguez=20Hern=C3=A1ndez?= Date: Fri, 28 Sep 2018 18:24:40 +0200 Subject: [PATCH] [stable/moodle] Improve getting LoadBalancer address in NOTES.txt (#8046) Signed-off-by: Carlos Rodriguez Hernandez --- stable/moodle/Chart.yaml | 2 +- stable/moodle/templates/NOTES.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/moodle/Chart.yaml b/stable/moodle/Chart.yaml index 7024c80431..5e3ffd37b8 100644 --- a/stable/moodle/Chart.yaml +++ b/stable/moodle/Chart.yaml @@ -1,5 +1,5 @@ name: moodle -version: 3.0.1 +version: 3.0.2 appVersion: 3.5.2 description: Moodle is a learning platform designed to provide educators, administrators and learners with a single robust, secure and integrated system to create personalised diff --git a/stable/moodle/templates/NOTES.txt b/stable/moodle/templates/NOTES.txt index 31a81eb8e7..42d464300a 100644 --- a/stable/moodle/templates/NOTES.txt +++ b/stable/moodle/templates/NOTES.txt @@ -27,7 +27,7 @@ ** Please ensure an external IP is associated to the {{ template "moodle.fullname" . }} service before proceeding ** ** Watch the status using: kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "moodle.fullname" . }} ** - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "moodle.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "moodle.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") echo "Moodle URL: http://$SERVICE_IP/" {{- else if contains "ClusterIP" .Values.serviceType }}