Skip to content

Commit

Permalink
refactor: remove unnecessary lookup for safer_cluster nodepool ID (#2160
Browse files Browse the repository at this point in the history
)
  • Loading branch information
wyardley authored Oct 30, 2024
1 parent c9a373a commit 179a8ec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion autogen/main/cluster.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ locals {
resource "random_id" "name" {
for_each = merge(local.node_pools, local.windows_node_pools)
byte_length = 2
prefix = format("%s-", lookup(each.value, "name"))
prefix = "${each.key}-"
keepers = merge(
zipmap(
local.force_node_pool_recreation_resources,
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 @@ -647,7 +647,7 @@ locals {
resource "random_id" "name" {
for_each = merge(local.node_pools, local.windows_node_pools)
byte_length = 2
prefix = format("%s-", lookup(each.value, "name"))
prefix = "${each.key}-"
keepers = merge(
zipmap(
local.force_node_pool_recreation_resources,
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 @@ -626,7 +626,7 @@ locals {
resource "random_id" "name" {
for_each = merge(local.node_pools, local.windows_node_pools)
byte_length = 2
prefix = format("%s-", lookup(each.value, "name"))
prefix = "${each.key}-"
keepers = merge(
zipmap(
local.force_node_pool_recreation_resources,
Expand Down
2 changes: 1 addition & 1 deletion modules/private-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ locals {
resource "random_id" "name" {
for_each = merge(local.node_pools, local.windows_node_pools)
byte_length = 2
prefix = format("%s-", lookup(each.value, "name"))
prefix = "${each.key}-"
keepers = merge(
zipmap(
local.force_node_pool_recreation_resources,
Expand Down

0 comments on commit 179a8ec

Please sign in to comment.