From 0beb4a048a0a95934f8259499055b47ead89afa6 Mon Sep 17 00:00:00 2001 From: Rodrigo Antunes Date: Thu, 5 Sep 2024 06:31:14 -0300 Subject: [PATCH] NO-ISSUE: Fix Helm Charts template notes (#2558) --- .../kie-sandbox-helm-chart/src/templates/NOTES.txt | 2 +- .../src/templates/NOTES.txt | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/kie-sandbox-helm-chart/src/templates/NOTES.txt b/packages/kie-sandbox-helm-chart/src/templates/NOTES.txt index b155f3a50bf..8099d0b2454 100644 --- a/packages/kie-sandbox-helm-chart/src/templates/NOTES.txt +++ b/packages/kie-sandbox-helm-chart/src/templates/NOTES.txt @@ -112,7 +112,7 @@ Run the following commands: {{- else if eq .Values.global.ingressSource "openshift" }} 1. CORS Proxy available at: - http{{ if .Values.cors_proxy.openshiftRoute.tls }}s{{ end }}://{{ tpl .Values.cors_proxy.openshiftRoute.host . }} + http{{ if $.Values.cors_proxy.openshiftRoute.tls }}s{{ end }}://{{ tpl .Values.cors_proxy.openshiftRoute.host . }} 2. Extended Services available at: http{{ if $.Values.extended_services.openshiftRoute.tls }}s{{ end }}://{{ tpl .Values.extended_services.openshiftRoute.host . }} 3. KIE Sandbox available at: diff --git a/packages/runtime-tools-consoles-helm-chart/src/templates/NOTES.txt b/packages/runtime-tools-consoles-helm-chart/src/templates/NOTES.txt index c00ab18fc0b..90aa9790ab6 100644 --- a/packages/runtime-tools-consoles-helm-chart/src/templates/NOTES.txt +++ b/packages/runtime-tools-consoles-helm-chart/src/templates/NOTES.txt @@ -6,7 +6,7 @@ In order to get {{ .Release.Name }} running you need to run these commands: 1. Management Console available at: {{- range $host := index .Values "management-console" "ingress" "hosts" }} {{- range .paths }} - http{{ if index .Values "management-console" "ingress" "tls" }}s{{ end }}://{{ tpl $host.host $ }}{{ .path }} + http{{ if index $.Values "management-console" "ingress" "tls" }}s{{ end }}://{{ tpl $host.host $ }}{{ .path }} {{- end }} {{- end }} {{- else }} @@ -33,7 +33,7 @@ In order to get {{ .Release.Name }} running you need to run these commands: 2. Task Console available at: {{- range $host := index .Values "task-console" "ingress" "hosts" }} {{- range .paths }} - http{{ if index .Values "task-console" "ingress" "tls" }}s{{ end }}://{{ tpl $host.host $ }}{{ .path }} + http{{ if index $.Values "task-console" "ingress" "tls" }}s{{ end }}://{{ tpl $host.host $ }}{{ .path }} {{- end }} {{- end }} {{- else }} @@ -70,7 +70,7 @@ Run the following commands: {{- end }} {{- end }} {{- end }} -{{- if .Values "task-console" "enabled" }} +{{- if index .Values "task-console" "enabled" }} {{- range $host := index .Values "task-console" "ingress" "hosts" }} {{- range .paths }} echo "$MINIKUBE_IP {{ tpl $host.host $ }}" | sudo tee -a /etc/hosts @@ -82,11 +82,11 @@ Run the following commands: {{- if index .Values "management-console" "enabled" }} 1. Management Console available at: - http{{ if index .Values "management-console" "openshiftRoute" "tls" }}s{{ end }}://{{ tpl (index .Values "management-console" "openshiftRoute" "host") . }} + http{{ if index $.Values "management-console" "openshiftRoute" "tls" }}s{{ end }}://{{ tpl (index .Values "management-console" "openshiftRoute" "host") . }} {{- end }} {{- if index .Values "task-console" "enabled" }} 2. Task Console available at: - http{{ if index .Values "task-console" "openshiftRoute" "tls" }}s{{ end }}://{{ tpl (index .Values "task-console" "openshiftRoute" "host") . }} + http{{ if index $.Values "task-console" "openshiftRoute" "tls" }}s{{ end }}://{{ tpl (index .Values "task-console" "openshiftRoute" "host") . }} {{- end }} {{- else }} @@ -94,7 +94,7 @@ Run the following commands: 1. Management Console available at: {{- range $host := index .Values "management-console" "ingress" "hosts" }} {{- range .paths }} - http{{ if index .Values "management-console" "ingress" "tls" }}s{{ end }}://{{ tpl $host.host $ }}{{ .path }} + http{{ if index $.Values "management-console" "ingress" "tls" }}s{{ end }}://{{ tpl $host.host $ }}{{ .path }} {{- end }} {{- end }} {{- end }} @@ -102,7 +102,7 @@ Run the following commands: 2. Task Console available at: {{- range $host := index .Values "task-console" "ingress" "hosts" }} {{- range .paths }} - http{{ if index .Values "task-console" "ingress" "tls" }}s{{ end }}://{{ tpl $host.host $ }}{{ .path }} + http{{ if index $.Values "task-console" "ingress" "tls" }}s{{ end }}://{{ tpl $host.host $ }}{{ .path }} {{- end }} {{- end }} {{- end }}