Skip to content

Commit

Permalink
Merge pull request #3450 from chajath/chajath/ignore-local-ssd
Browse files Browse the repository at this point in the history
Add lifecycle rule to ignore local SSDs
  • Loading branch information
ighosh98 authored Dec 24, 2024
2 parents 263c7c1 + ecd4d9c commit 517adbc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/compute/gke-node-pool/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ resource "google_container_node_pool" "node_pool" {
ignore_changes = [
node_config[0].labels,
initial_node_count,
# Ignore local/ephemeral ssd configs as they are tied to machine types.
node_config[0].ephemeral_storage_local_ssd_config,
node_config[0].local_nvme_ssd_block_config,
]
precondition {
condition = (var.max_pods_per_node == null) || (data.google_container_cluster.gke_cluster.networking_mode == "VPC_NATIVE")
Expand Down

0 comments on commit 517adbc

Please sign in to comment.