From d50308ddf3169937ecc4253bb8a7bcecf8bde3c5 Mon Sep 17 00:00:00 2001 From: Viktoras Makauskas Date: Tue, 20 Feb 2024 18:46:30 +0200 Subject: [PATCH] Small example fixes and user documentation. --- main.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main.tf b/main.tf index 567f717..9a9719e 100644 --- a/main.tf +++ b/main.tf @@ -100,6 +100,16 @@ resource "castai_node_template" "this" { max_count = try(gpu.value.max_count, null) } } + + dynamic "custom_priority" { + for_each = flatten([lookup(constraints.value, "custom_priority", [])]) + + content { + instance_families = try(custom_priority.value.instance_families, []) + spot = try(custom_priority.value.spot, false) + on_demand = try(custom_priority.value.on_demand, false) + } + } } } depends_on = [ castai_autoscaler.castai_autoscaler_policies ]