Skip to content

Commit

Permalink
add trimspace
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 committed Aug 25, 2024
1 parent 334bef9 commit ba4ddf8
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 354 deletions.
152 changes: 0 additions & 152 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion autogen/main/cluster.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ resource "google_container_node_pool" "windows_pools" {
content {
consume_reservation_type = lookup(reservation_affinity.value, "queued_provisioning", false) ? "NO_RESERVATION" : lookup(reservation_affinity.value, "consume_reservation_type", null)
key = lookup(reservation_affinity.value, "reservation_affinity_key", null)
values = lookup(reservation_affinity.value, "reservation_affinity_values", null) == null ? null : split(",", lookup(reservation_affinity.value, "reservation_affinity_values", null))
values = lookup(reservation_affinity.value, "reservation_affinity_values", null) == null ? null : [for s in split(",", lookup(reservation_affinity.value, "reservation_affinity_values", null)) : trimspace(s)]
}
}
labels = merge(
Expand Down
4 changes: 2 additions & 2 deletions cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ resource "google_container_node_pool" "pools" {
content {
consume_reservation_type = lookup(reservation_affinity.value, "queued_provisioning", false) ? "NO_RESERVATION" : lookup(reservation_affinity.value, "consume_reservation_type", null)
key = lookup(reservation_affinity.value, "reservation_affinity_key", null)
values = lookup(reservation_affinity.value, "reservation_affinity_values", null) == null ? null : split(",", lookup(reservation_affinity.value, "reservation_affinity_values", null))
values = lookup(reservation_affinity.value, "reservation_affinity_values", null) == null ? null : [for s in split(",", lookup(reservation_affinity.value, "reservation_affinity_values", null)) : trimspace(s)]
}
}
labels = merge(
Expand Down Expand Up @@ -891,7 +891,7 @@ resource "google_container_node_pool" "windows_pools" {
content {
consume_reservation_type = lookup(reservation_affinity.value, "queued_provisioning", false) ? "NO_RESERVATION" : lookup(reservation_affinity.value, "consume_reservation_type", null)
key = lookup(reservation_affinity.value, "reservation_affinity_key", null)
values = lookup(reservation_affinity.value, "reservation_affinity_values", null) == null ? null : split(",", lookup(reservation_affinity.value, "reservation_affinity_values", null))
values = lookup(reservation_affinity.value, "reservation_affinity_values", null) == null ? null : [for s in split(",", lookup(reservation_affinity.value, "reservation_affinity_values", null)) : trimspace(s)]
}
}
labels = merge(
Expand Down
Loading

0 comments on commit ba4ddf8

Please sign in to comment.