Skip to content

Commit

Permalink
Fixing node gorup taint w/ no GPU (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
mclacore authored Nov 27, 2023
1 parent f834e66 commit dca3bc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions massdriver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ NodeGroup: &node_group
pattern: "^[a-z]{1,1}[a-z0-9]{0,11}$"
message:
pattern: This field only accepts lowercase letters and numbers, with a max length of 12 characters. **Changing this forces a deletion and re-creation of the node group**.
not:
enum:
- "null"
min_size:
type: number
title: Minimum size
Expand Down
2 changes: 1 addition & 1 deletion src/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ resource "azurerm_kubernetes_cluster_node_pool" "main" {
mode = "User"
max_count = each.value.max_size
min_count = each.value.min_size
node_taints = [var.node_groups.additional_node_groups.0.compute_type == "GPU" ? "sku=gpu:NoSchedule" : null]
node_taints = var.node_groups.additional_node_groups.0.compute_type == "GPU" ? ["sku=gpu:NoSchedule"] : []
tags = var.md_metadata.default_tags
}

Expand Down

0 comments on commit dca3bc8

Please sign in to comment.