From 17f91328e46dc05d73ce35d9982f3db2eca18334 Mon Sep 17 00:00:00 2001 From: Tomas Pizarro Date: Mon, 29 Oct 2018 12:44:38 +0100 Subject: [PATCH] [stable/postgresql] Fix NOTES.txt render error when service type is LB (#8835) * [stable/postgresql] Fix NOTES.txt render error when service type is LoadBalancer Signed-off-by: tompizmor * Delete wrong line Signed-off-by: tompizmor --- stable/postgresql/Chart.yaml | 2 +- stable/postgresql/templates/NOTES.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/postgresql/Chart.yaml b/stable/postgresql/Chart.yaml index d39f919c9d..a0a030db68 100644 --- a/stable/postgresql/Chart.yaml +++ b/stable/postgresql/Chart.yaml @@ -1,5 +1,5 @@ name: postgresql -version: 2.2.0 +version: 2.2.1 appVersion: 10.5.0 description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. keywords: diff --git a/stable/postgresql/templates/NOTES.txt b/stable/postgresql/templates/NOTES.txt index 3b157d27b7..8b30cfbecc 100644 --- a/stable/postgresql/templates/NOTES.txt +++ b/stable/postgresql/templates/NOTES.txt @@ -47,7 +47,7 @@ To connect to your database from outside the cluster execute the following comma 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 "postgresql.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "postgresql.fullname" . }} --template "{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}") + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "postgresql.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") {{ if .Values.postgresqlPassword }}PGPASSWORD={{ .Values.postgresqlPassword}} "{{- end }}psql --host $SERVICE_IP --port {{ .Values.service.port }} -U {{ .Values.postgresqlUsername }} {{- else if contains "ClusterIP" .Values.service.type }}