Skip to content

Commit baf046c

Browse files
committed
read host from configmap
1 parent 3900564 commit baf046c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎packages/core/platform/templates/apps.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
{{- $bundleName := index $cozyConfig.data "bundle-name" }}
33
{{- $bundle := tpl (.Files.Get (printf "bundles/%s.yaml" $bundleName)) . | fromYaml }}
44
{{- $host := "example.org" }}
5+
{{- $host := "example.org" }}
6+
{{- if $cozyConfig.data }}
7+
{{- if hasKey $cozyConfig.data "root-host" }}
8+
{{- $host = index $cozyConfig.data "root-host" }}
9+
{{- end }}
10+
{{- end }}
511
{{- $tenantRoot := list }}
612
{{- if .Capabilities.APIVersions.Has "helm.toolkit.fluxcd.io/v2" }}
713
{{- $tenantRoot = lookup "helm.toolkit.fluxcd.io/v2" "HelmRelease" "tenant-root" "tenant-root" }}

0 commit comments

Comments
 (0)