From a1686d73bf553445bf233278df1adb7f2f4d26d5 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:37 +0200 Subject: [PATCH] [stable/redis] Improve getting LoadBalancer address in NOTES.txt (#8035) Signed-off-by: Carlos Rodriguez Hernandez --- stable/redis/Chart.yaml | 4 ++-- stable/redis/templates/NOTES.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stable/redis/Chart.yaml b/stable/redis/Chart.yaml index 799409f17b..b90d822cfd 100644 --- a/stable/redis/Chart.yaml +++ b/stable/redis/Chart.yaml @@ -1,5 +1,5 @@ name: redis -version: 4.1.0 +version: 4.1.1 appVersion: 4.0.11 description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. keywords: @@ -11,6 +11,6 @@ icon: https://bitnami.com/assets/stacks/redis/img/redis-stack-220x234.png sources: - https://github.com/bitnami/bitnami-docker-redis maintainers: -- name: bitnami-bot +- name: Bitnami email: containers@bitnami.com engine: gotpl diff --git a/stable/redis/templates/NOTES.txt b/stable/redis/templates/NOTES.txt index 972035f277..d2b4144196 100644 --- a/stable/redis/templates/NOTES.txt +++ b/stable/redis/templates/NOTES.txt @@ -76,7 +76,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 "redis.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "redis.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "redis.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") redis-cli -h $SERVICE_IP -p {{ .Values.master.service.nodePort }} {{- if .Values.usePassword }} -a $REDIS_PASSWORD{{ end }} {{- else if contains "ClusterIP" .Values.master.service.type }}