Skip to content

Commit

Permalink
fix: add burstable_instances node template constraints (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikenorgate authored Jul 26, 2024
1 parent a5842f0 commit 596c483
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ resource "castai_node_template" "this" {
content {
compute_optimized = try(constraints.value.compute_optimized, null)
storage_optimized = try(constraints.value.storage_optimized, null)
compute_optimized_state = try(constraints.value.compute_optimized_state, "")
storage_optimized_state = try(constraints.value.storage_optimized_state, "")
compute_optimized_state = try(constraints.value.compute_optimized_state, "")
storage_optimized_state = try(constraints.value.storage_optimized_state, "")
is_gpu_only = try(constraints.value.is_gpu_only, false)
spot = try(constraints.value.spot, false)
on_demand = try(constraints.value.on_demand, null)
Expand All @@ -96,6 +96,7 @@ resource "castai_node_template" "this" {
max_memory = try(constraints.value.max_memory, null)
architectures = try(constraints.value.architectures, ["amd64"])
azs = try(constraints.value.azs, null)
burstable_instances = try(constraints.value.burstable_instances, null)

dynamic "instance_families" {
for_each = [for instance_families in flatten([lookup(constraints.value, "instance_families", [])]) : instance_families if instance_families != null]
Expand Down

0 comments on commit 596c483

Please sign in to comment.