From 928a466d10c1dbb4c7ff894ec4ecc474398f4f1a Mon Sep 17 00:00:00 2001 From: Sivaanand Murugesan Date: Sat, 15 Apr 2023 00:00:51 +0530 Subject: [PATCH] PLT-323-3: Added support for override param for helm chart in system profile (#63) --- spectro-cluster-common-system.tf | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/spectro-cluster-common-system.tf b/spectro-cluster-common-system.tf index 1dd4ce7..d823c1b 100644 --- a/spectro-cluster-common-system.tf +++ b/spectro-cluster-common-system.tf @@ -2,7 +2,7 @@ locals { cluster_system_profiles_map = { for v in var.clusters : - v.name => concat(try([v.profiles.system], []), []) + v.name => try(concat(try([v.profiles.system], []), [])[0], {}) } // local.cluster_system_profiles_map should contain information provided by user in cluster.yaml file @@ -67,10 +67,19 @@ locals { } -output "debug_cluster_system_profiles_map" { +output "cluster_system_profiles_map" { value = local.cluster_system_profiles_map } -output "debug_system_pack_manifests" { - value = local.system_pack_manifests + +#output "debug_system_pack_manifests" { +# value = local.system_pack_manifests +#} +# +output "system-pack-params-replaced"{ + value = local.system-pack-params-replaced +} + +output "cluster-profile-pack-map" { + value = local.cluster-profile-pack-map } \ No newline at end of file