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

fix: set route host properly when clusterRouterBase is set #166

Merged
merged 3 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/backstage/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ sources:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.12.0
version: 2.12.1
2 changes: 1 addition & 1 deletion charts/backstage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Janus-IDP Backstage Helm Chart

[![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)
![Version: 2.12.0](https://img.shields.io/badge/Version-2.12.0-informational?style=flat-square)
![Version: 2.12.1](https://img.shields.io/badge/Version-2.12.1-informational?style=flat-square)
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

A Helm chart for deploying a Backstage application
Expand Down
7 changes: 5 additions & 2 deletions charts/backstage/templates/route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ metadata:
{{- end }}
{{- end }}
spec:
{{- if .Values.route.host }}
host: {{ tpl .Values.route.host . }}
{{- $host := tpl .Values.route.host . -}}
{{- if $host }}
host: {{ $host }}
{{- else }}
host: {{ include "janus-idp.hostname" . }}
{{- end }}
{{- if .Values.route.path }}
path: {{ .Values.route.path }}
Expand Down
Loading