From eff21272916b7e3001d5a2b8301682f1d315fce4 Mon Sep 17 00:00:00 2001 From: cadnce Date: Tue, 24 Oct 2023 14:23:09 +1100 Subject: [PATCH] Fix up missing notes when using an ingress --- charts/kafka-ui/templates/NOTES.txt | 6 +----- charts/kafka-ui/values.yaml | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/charts/kafka-ui/templates/NOTES.txt b/charts/kafka-ui/templates/NOTES.txt index 94e8d3943..4dd11d029 100644 --- a/charts/kafka-ui/templates/NOTES.txt +++ b/charts/kafka-ui/templates/NOTES.txt @@ -1,10 +1,6 @@ 1. Get the application URL by running these commands: {{- if .Values.ingress.enabled }} -{{- range $host := .Values.ingress.hosts }} - {{- range .paths }} - http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ . }} - {{- end }} -{{- end }} + Visit http{{ if $.Values.ingress.tls }}s{{ end }}://{{ .Values.ingress.host }}{{ .Values.ingress.path }} {{- else if contains "NodePort" .Values.service.type }} export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "kafka-ui.fullname" . }}) export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") diff --git a/charts/kafka-ui/values.yaml b/charts/kafka-ui/values.yaml index 72038e9b6..a9345a0a1 100644 --- a/charts/kafka-ui/values.yaml +++ b/charts/kafka-ui/values.yaml @@ -111,6 +111,7 @@ ingress: ingressClassName: "" # The path for the Ingress + # Ensure to set envs.config.SERVER_SERVLET_CONTEXT_PATH if you want it to work at a subpath other than / path: "/" # The path type for the Ingress