Skip to content

Commit

Permalink
Revert to ignoring changes on name
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmiller609 committed Sep 30, 2019
1 parent 0c9fd64 commit 7b2a8cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node_pools.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resource "google_container_node_pool" "node_pool_mt" {
# instead of rolling deployment.
# The master_version will ensure that the node pool is created then
# destroyed if there is an update.
name = "${var.deployment_id}-mt-${replace(data.google_container_cluster.primary.master_version, ".", "-")}"
name = "${var.deployment_id}-mt-${formatdate("MM-DD-hh-mm", timestamp())}"

# this one can take a long time to delete or create
timeouts {
Expand All @@ -30,6 +30,7 @@ resource "google_container_node_pool" "node_pool_mt" {

lifecycle {
create_before_destroy = true
ignore_changes = [name]
}

location = var.zonal_cluster ? local.zone : local.region
Expand Down

0 comments on commit 7b2a8cf

Please sign in to comment.