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

Commit

Permalink
fix: set route host properly when clusterRouterBase is set (#166)
Browse files Browse the repository at this point in the history
* fix: set route host properly when clusterRouterBase is set

* chore: update version and update route host
  • Loading branch information
Zaperex authored Jan 24, 2024
1 parent d83df53 commit cf7aca4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
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

0 comments on commit cf7aca4

Please sign in to comment.