feat: automatically configure `base` for Homepage and merge with user-defined config

main
RaviAnand Mohabir 2 years ago
parent 9db93bc348
commit e43a1785ee

@ -251,7 +251,9 @@ resource "kubernetes_config_map" "homepage_config" {
data = { data = {
"services.yaml" = yamlencode(var.services_config) "services.yaml" = yamlencode(var.services_config)
"widgets.yaml" = yamlencode(var.widgets_config) "widgets.yaml" = yamlencode(var.widgets_config)
"settings.yaml" = yamlencode(var.settings) "settings.yaml" = yamlencode(
merge({ base = "https://${var.host}" }, var.settings)
)
"bookmarks.yaml" = yamlencode(var.bookmarks) "bookmarks.yaml" = yamlencode(var.bookmarks)
"docker.yaml" = yamlencode(var.docker_config) "docker.yaml" = yamlencode(var.docker_config)
"kubernetes.yaml" = yamlencode(var.kubernetes_config) "kubernetes.yaml" = yamlencode(var.kubernetes_config)

Loading…
Cancel
Save