From 88f0d00099db0e803c8135ed851c276c3e894984 Mon Sep 17 00:00:00 2001 From: linkas45 Date: Wed, 8 May 2024 11:46:38 +0700 Subject: [PATCH] impl --- main.tf | 6 ++++-- versions.tf | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/main.tf b/main.tf index 7b27291..dc0d724 100644 --- a/main.tf +++ b/main.tf @@ -73,8 +73,10 @@ resource "castai_node_template" "this" { dynamic "constraints" { for_each = flatten([lookup(each.value, "constraints", [])]) content { - compute_optimized = try(constraints.value.compute_optimized, false) - storage_optimized = try(constraints.value.storage_optimized, false) + compute_optimized = try(constraints.value.compute_optimized, null) + storage_optimized = try(constraints.value.storage_optimized, null) + compute_optimized_status = try(constraints.value.compute_optimized_status, "") + storage_optimized_status = try(constraints.value.storage_optimized_status, "") is_gpu_only = try(constraints.value.is_gpu_only, false) spot = try(constraints.value.spot, false) on_demand = try(constraints.value.on_demand, null) diff --git a/versions.tf b/versions.tf index d8c35af..e346a6c 100644 --- a/versions.tf +++ b/versions.tf @@ -8,7 +8,7 @@ terraform { } castai = { source = "castai/castai" - version = "~> 6.6.0" + version = "~> 7.0.0" } helm = { source = "hashicorp/helm"