Skip to content

Commit

Permalink
add is_enabled value to node templates in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
linkas45 committed Feb 28, 2024
1 parent 3d692a7 commit ca884ac
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/aks/aks_cluster_arm_template/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ module "castai-aks-cluster" {
name = "default-by-castai"
configuration_id = module.castai-aks-cluster.castai_node_configurations["default"]
is_default = true
is_enabled = true
should_taint = false

constraints = {
Expand All @@ -71,6 +72,7 @@ module "castai-aks-cluster" {
}
spot_tmpl = {
configuration_id = module.castai-aks-cluster.castai_node_configurations["default"]
is_enabled = true
should_taint = true

custom_labels = {
Expand Down
2 changes: 2 additions & 0 deletions examples/aks/aks_cluster_autoscaler_policies/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ module "castai-aks-cluster" {
name = "default-by-castai"
configuration_id = module.castai-aks-cluster.castai_node_configurations["default"]
is_default = true
is_enabled = true
should_taint = false

constraints = {
Expand All @@ -71,6 +72,7 @@ module "castai-aks-cluster" {
}
spot_tmpl = {
configuration_id = module.castai-aks-cluster.castai_node_configurations["default"]
is_enabled = true
should_taint = true

custom_labels = {
Expand Down
1 change: 1 addition & 0 deletions examples/aks/aks_cluster_existing/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ module "castai-aks-cluster" {
name = "default-by-castai"
configuration_id = module.castai-aks-cluster.castai_node_configurations["default"]
is_default = true
is_enabled = true
should_taint = false

constraints = {
Expand Down
2 changes: 2 additions & 0 deletions examples/eks/eks_cluster_autoscaler_policies/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ module "castai-eks-cluster" {
name = "default-by-castai"
configuration_id = module.castai-eks-cluster.castai_node_configurations["default"]
is_default = true
is_enabled = true
should_taint = false

constraints = {
Expand All @@ -122,6 +123,7 @@ module "castai-eks-cluster" {
}
spot_tmpl = {
configuration_id = module.castai-eks-cluster.castai_node_configurations["default"]
is_enabled = true
should_taint = true

custom_labels = {
Expand Down
1 change: 1 addition & 0 deletions examples/eks/eks_cluster_existing/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ module "castai-eks-cluster" {
name = "default-by-castai"
configuration_id = module.castai-eks-cluster.castai_node_configurations["default"]
is_default = true
is_enabled = true
should_taint = false

constraints = {
Expand Down
1 change: 1 addition & 0 deletions examples/eks/eks_cluster_webshop/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ module "castai-eks-cluster" {
name = "default-by-castai"
configuration_id = module.castai-eks-cluster.castai_node_configurations["default"]
is_default = true
is_enabled = true
should_taint = false

constraints = {
Expand Down
2 changes: 2 additions & 0 deletions examples/eks/eks_clusters/module/castai/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ locals {
"default"
]
is_default = true
is_enabled = true
should_taint = false

constraints = {
Expand Down Expand Up @@ -54,6 +55,7 @@ locals {
node_templates = merge(local.default_node_tmpl, var.only_default == true ? {} : {
spot_tmpl = {
configuration_id = module.castai-eks-cluster.castai_node_configurations["default"]
is_enabled = true
should_taint = true

custom_labels = {
Expand Down
2 changes: 2 additions & 0 deletions examples/gke/gke_cluster_autoscaler_policies/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ module "castai-gke-cluster" {
name = "default-by-castai"
configuration_id = module.castai-gke-cluster.castai_node_configurations["default"]
is_default = true
is_enabled = true
should_taint = false

constraints = {
Expand All @@ -78,6 +79,7 @@ module "castai-gke-cluster" {
}
spot_tmpl = {
configuration_id = module.castai-gke-cluster.castai_node_configurations["default"]
is_enabled = true
should_taint = true

custom_labels = {
Expand Down
2 changes: 2 additions & 0 deletions examples/gke/gke_cluster_existing/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ module "castai-gke-cluster" {
name = "default-by-castai"
configuration_id = module.castai-gke-cluster.castai_node_configurations["default"]
is_default = true
is_enabled = true
should_taint = false

constraints = {
Expand All @@ -84,6 +85,7 @@ module "castai-gke-cluster" {
}
spot_tmpl = {
configuration_id = module.castai-gke-cluster.castai_node_configurations["default"]
is_enabled = true
should_taint = true

custom_labels = {
Expand Down
1 change: 1 addition & 0 deletions examples/gke/gke_cluster_zonal_autoscaler/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ module "castai-gke-cluster" {
name = "default-by-castai"
configuration_id = module.castai-gke-cluster.castai_node_configurations["default"]
is_default = true
is_enabled = true
should_taint = false

constraints = {
Expand Down

0 comments on commit ca884ac

Please sign in to comment.