Skip to content

Commit

Permalink
Wrap in lookup for safety
Browse files Browse the repository at this point in the history
  • Loading branch information
m10ev committed Dec 2, 2020
1 parent 2216262 commit 6dd33b1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion autogen/main/cluster.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ resource "google_container_node_pool" "pools" {
boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "")

dynamic "kubelet_config" {
for_each = each.value.cpu_manager_policy[*]
for_each = lookup(each.value, "cpu_manager_policy", null)[*]

content {
cpu_manager_policy = each.value.cpu_manager_policy
Expand Down
2 changes: 1 addition & 1 deletion modules/beta-private-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ resource "google_container_node_pool" "pools" {
boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "")

dynamic "kubelet_config" {
for_each = each.value.cpu_manager_policy[*]
for_each = lookup(each.value, "cpu_manager_policy", null)[*]

content {
cpu_manager_policy = each.value.cpu_manager_policy
Expand Down
2 changes: 1 addition & 1 deletion modules/beta-private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ resource "google_container_node_pool" "pools" {
boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "")

dynamic "kubelet_config" {
for_each = each.value.cpu_manager_policy[*]
for_each = lookup(each.value, "cpu_manager_policy", null)[*]

content {
cpu_manager_policy = each.value.cpu_manager_policy
Expand Down
2 changes: 1 addition & 1 deletion modules/beta-public-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ resource "google_container_node_pool" "pools" {
boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "")

dynamic "kubelet_config" {
for_each = each.value.cpu_manager_policy[*]
for_each = lookup(each.value, "cpu_manager_policy", null)[*]

content {
cpu_manager_policy = each.value.cpu_manager_policy
Expand Down
2 changes: 1 addition & 1 deletion modules/beta-public-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ resource "google_container_node_pool" "pools" {
boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "")

dynamic "kubelet_config" {
for_each = each.value.cpu_manager_policy[*]
for_each = lookup(each.value, "cpu_manager_policy", null)[*]

content {
cpu_manager_policy = each.value.cpu_manager_policy
Expand Down

0 comments on commit 6dd33b1

Please sign in to comment.