Skip to content

Commit

Permalink
added missing option for exclusion scope (#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 Apr 18, 2024
1 parent f22837c commit 1563a76
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 1563a76

Please sign in to comment.