From 045449d81fdd6e5b17a03f5aa6ef6ba201cf892d 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:31 +0200 Subject: [PATCH] [stable/odoo] Improve getting LoadBalancer address in NOTES.txt (#8044) Signed-off-by: Carlos Rodriguez Hernandez --- stable/odoo/Chart.yaml | 2 +- stable/odoo/templates/NOTES.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/odoo/Chart.yaml b/stable/odoo/Chart.yaml index 16d53ef603..69483c933a 100644 --- a/stable/odoo/Chart.yaml +++ b/stable/odoo/Chart.yaml @@ -1,5 +1,5 @@ name: odoo -version: 3.0.0 +version: 3.0.1 appVersion: 11.0.20180915 description: A suite of web based open source business apps. home: https://www.odoo.com/ diff --git a/stable/odoo/templates/NOTES.txt b/stable/odoo/templates/NOTES.txt index 3501a58367..e99c8ecc8b 100644 --- a/stable/odoo/templates/NOTES.txt +++ b/stable/odoo/templates/NOTES.txt @@ -25,7 +25,7 @@ ** Please ensure an external IP is associated to the {{ template "odoo.fullname" . }} service before proceeding ** ** Watch the status using: kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "odoo.fullname" . }} ** - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "odoo.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "odoo.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") echo "Odoo URL: http://$SERVICE_IP/" {{- else if contains "ClusterIP" .Values.service.type }}