Skip to content

Commit

Permalink
NO-ISSUE: Fix Helm Charts template notes (#2558)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigonull committed Sep 5, 2024
1 parent 5346a8e commit 0beb4a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/kie-sandbox-helm-chart/src/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -82,27 +82,27 @@ 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 }}
{{- if and ( index .Values "management-console" "enabled" ) ( index .Values "management-console" "ingress" "enabled" ) }}
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 }}
{{- if and ( index .Values "task-console" "enabled" ) ( index .Values "task-console" "ingress" "enabled" ) }}
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 }}
Expand Down

0 comments on commit 0beb4a0

Please sign in to comment.