From f6d5b6fc3370c8c70618fcac5d85a7c673f7f729 Mon Sep 17 00:00:00 2001 From: Viktoras Makauskas Date: Thu, 22 Feb 2024 11:09:39 +0200 Subject: [PATCH] fix list initialization --- .../aks_cluster_autoscaler_policies/castai.tf | 22 ++++++++++--------- .../eks_cluster_autoscaler_policies/castai.tf | 22 ++++++++++--------- .../gke_cluster_autoscaler_policies/castai.tf | 22 ++++++++++--------- 3 files changed, 36 insertions(+), 30 deletions(-) diff --git a/examples/aks/aks_cluster_autoscaler_policies/castai.tf b/examples/aks/aks_cluster_autoscaler_policies/castai.tf index d51173ea..2c557ee6 100644 --- a/examples/aks/aks_cluster_autoscaler_policies/castai.tf +++ b/examples/aks/aks_cluster_autoscaler_policies/castai.tf @@ -104,17 +104,19 @@ module "castai-aks-cluster" { # Optional: define custom priority for instances selection. # # 1. Prioritize Standard_Fs spot instances above all else, regardless of price. - custom_priority = { - instance_families = ["Standard_FS"] - spot = true - } # 2. If Standard_FS is not available, try Standard_FXMDS family. - custom_priority = { - instance_families = ["Standard_FXMDS"] - spot = true - } - # 3. instances not matching any of custom priority groups will be tried after - # nothing matches from priority groups. + custom_priority = [ + { + instance_families = ["Standard_FS"] + spot = true + }, + { + instance_families = ["Standard_FXMDS"] + spot = true + } + # 3. instances not matching any of custom priority groups will be tried after + # nothing matches from priority groups. + ] } } } diff --git a/examples/eks/eks_cluster_autoscaler_policies/castai.tf b/examples/eks/eks_cluster_autoscaler_policies/castai.tf index ed9b9072..c254263b 100644 --- a/examples/eks/eks_cluster_autoscaler_policies/castai.tf +++ b/examples/eks/eks_cluster_autoscaler_policies/castai.tf @@ -156,17 +156,19 @@ module "castai-eks-cluster" { # Optional: define custom priority for instances selection. # # 1. Prioritize C5a and C5ad spot instances above all else, regardless of price. - custom_priority = { - instance_families = ["c5a", "c5ad"] - spot = true - } # 2. If C5a is not available, try C6a family. - custom_priority = { - instance_families = ["c6a"] - spot = true - } - # 3. instances not matching any of custom priority groups will be tried after - # nothing matches from priority groups. + custom_priority = [ + { + instance_families = ["c5a", "c5ad"] + spot = true + }, + { + instance_families = ["c6a"] + spot = true + } + # 3. instances not matching any of custom priority groups will be tried after + # nothing matches from priority groups. + ] } } } diff --git a/examples/gke/gke_cluster_autoscaler_policies/castai.tf b/examples/gke/gke_cluster_autoscaler_policies/castai.tf index 14a1d2ee..cf849b51 100644 --- a/examples/gke/gke_cluster_autoscaler_policies/castai.tf +++ b/examples/gke/gke_cluster_autoscaler_policies/castai.tf @@ -113,17 +113,19 @@ module "castai-gke-cluster" { # Optional: define custom priority for instances selection. # # 1. Prioritize C2D and C2 spot instances above all else, regardless of price. - custom_priority = { - instance_families = ["c2d", "c2"] - spot = true - } # 2. If C2D and C2 is not available, try C3D family. - custom_priority = { - instance_families = ["c3d"] - spot = true - } - # 3. instances not matching any of custom priority groups will be tried after - # nothing matches from priority groups. + custom_priority = [ + { + instance_families = ["c2d", "c2"] + spot = true + }, + custom_priority = { + instance_families = ["c3d"] + spot = true + } + # 3. instances not matching any of custom priority groups will be tried after + # nothing matches from priority groups. + ] } custom_instances_enabled = true