mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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 <tompizmor@gmail.com> * Delete wrong line Signed-off-by: tompizmor <tompizmor@gmail.com>
This commit is contained in:
committed by
k8s-ci-robot
parent
25aa880f05
commit
17f91328e4
@@ -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:
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user