Skip to content

Commit

Permalink
added missing option for exclusion scope (GoogleCloudPlatform#2224)
Browse files Browse the repository at this point in the history
* added missing option for exclusion scope

* added validation and changes for gke autopilot
  • Loading branch information
cmalpe authored and dibaskar-google committed May 14, 2024
1 parent 59b6f1b commit 26655f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/gke-cluster-autopilot/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,12 @@ resource "google_container_cluster" "cluster" {
exclusion_name = exclusion.value.name
start_time = exclusion.value.start_time
end_time = exclusion.value.end_time
dynamic "exclusion_options" {
for_each = exclusion.value.scope != null ? [""] : []
content {
scope = exclusion.value.scope
}
}
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions modules/gke-cluster-standard/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,12 @@ resource "google_container_cluster" "cluster" {
exclusion_name = exclusion.value.name
start_time = exclusion.value.start_time
end_time = exclusion.value.end_time
dynamic "exclusion_options" {
for_each = exclusion.value.scope != null ? [""] : []
content {
scope = exclusion.value.scope
}
}
}
}
}
Expand Down

0 comments on commit 26655f1

Please sign in to comment.