diff --git a/packages/core/platform/templates/apps.yaml b/packages/core/platform/templates/apps.yaml index 859302db..f1872870 100644 --- a/packages/core/platform/templates/apps.yaml +++ b/packages/core/platform/templates/apps.yaml @@ -2,6 +2,12 @@ {{- $bundleName := index $cozyConfig.data "bundle-name" }} {{- $bundle := tpl (.Files.Get (printf "bundles/%s.yaml" $bundleName)) . | fromYaml }} {{- $host := "example.org" }} +{{- $host := "example.org" }} +{{- if $cozyConfig.data }} + {{- if hasKey $cozyConfig.data "root-host" }} + {{- $host = index $cozyConfig.data "root-host" }} + {{- end }} +{{- end }} {{- $tenantRoot := list }} {{- if .Capabilities.APIVersions.Has "helm.toolkit.fluxcd.io/v2" }} {{- $tenantRoot = lookup "helm.toolkit.fluxcd.io/v2" "HelmRelease" "tenant-root" "tenant-root" }}