From 19678d7a64f3a97a03e57f4961959e8bb4d646ba Mon Sep 17 00:00:00 2001 From: Antonio Gamez Diaz Date: Mon, 18 Oct 2021 16:11:12 +0200 Subject: [PATCH] Show http or https when deploying with LoadBalancer Signed-off-by: Antonio Gamez Diaz --- chart/kubeapps/templates/NOTES.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/kubeapps/templates/NOTES.txt b/chart/kubeapps/templates/NOTES.txt index 6c8d80bdc9b..30452e11e6a 100644 --- a/chart/kubeapps/templates/NOTES.txt +++ b/chart/kubeapps/templates/NOTES.txt @@ -48,7 +48,7 @@ To access Kubeapps from outside your K8s cluster, follow the steps below: Watch the status by running 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "common.names.fullname" . }}' export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "common.names.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo "Kubeapps URL: http://$SERVICE_IP:{{ .Values.frontend.service.port }}" + echo "Kubeapps URL: http{{ if eq ( .Values.frontend.service.port | toString ) "443" }}s{{ end }}://$SERVICE_IP:{{ .Values.frontend.service.port }}" {{- else if contains "ClusterIP" .Values.frontend.service.type }}