Skip to content

Commit

Permalink
fix: add os & burstable_instances node template constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
mikenorgate committed Jul 24, 2024
1 parent a5842f0 commit a071601
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 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,8 @@ 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)
os = try(constraints.value.os, ["linux"])
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 a071601

Please sign in to comment.