Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit cf7aca4

Browse files
authored
fix: set route host properly when clusterRouterBase is set (#166)
* fix: set route host properly when clusterRouterBase is set * chore: update version and update route host
1 parent d83df53 commit cf7aca4

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

charts/backstage/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ sources:
4141
# This is the chart version. This version number should be incremented each time you make changes
4242
# to the chart and its templates, including the app version.
4343
# Versions are expected to follow Semantic Versioning (https://semver.org/)
44-
version: 2.12.0
44+
version: 2.12.1

charts/backstage/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Janus-IDP Backstage Helm Chart
33

44
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/janus-idp&style=flat-square)](https://artifacthub.io/packages/search?repo=janus-idp)
5-
![Version: 2.12.0](https://img.shields.io/badge/Version-2.12.0-informational?style=flat-square)
5+
![Version: 2.12.1](https://img.shields.io/badge/Version-2.12.1-informational?style=flat-square)
66
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
77

88
A Helm chart for deploying a Backstage application

charts/backstage/templates/route.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ metadata:
1919
{{- end }}
2020
{{- end }}
2121
spec:
22-
{{- if .Values.route.host }}
23-
host: {{ tpl .Values.route.host . }}
22+
{{- $host := tpl .Values.route.host . -}}
23+
{{- if $host }}
24+
host: {{ $host }}
25+
{{- else }}
26+
host: {{ include "janus-idp.hostname" . }}
2427
{{- end }}
2528
{{- if .Values.route.path }}
2629
path: {{ .Values.route.path }}

0 commit comments

Comments
 (0)