Skip to content

Commit ad9926b

Browse files
cslinkniharika-98
authored andcommitted
feat: Clarify maintenance exclusion usage in no channel to release channel samples for GKE (terraform-google-modules#823)
1 parent ecdbeb4 commit ad9926b

File tree

1 file changed

+13
-4
lines changed
  • gke/standard/zonal/no-channel-to-release-channel

1 file changed

+13
-4
lines changed

gke/standard/zonal/no-channel-to-release-channel/main.tf

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ resource "google_container_cluster" "no_upgrade" {
6565
}
6666
maintenance_exclusion {
6767
exclusion_name = "no_upgrades_exclusion"
68-
start_time = "2025-02-11T23:16:39Z"
68+
# NOTE: Pick an interval for your exclusion with an end_time in the future
69+
# otherwise the exclusion will have no effect.
70+
# This example assumes that the exclusion is set on 2025-02-11.
71+
start_time = "2025-02-11T23:16:39Z"
6972
# NO_UPGRADES exclusions are limited to 30 days.
7073
end_time = "2025-03-11T23:16:39Z"
7174
exclusion_options {
@@ -112,8 +115,11 @@ resource "google_container_cluster" "rc_regular" {
112115
}
113116
maintenance_exclusion {
114117
exclusion_name = "no_upgrades_exclusion"
115-
start_time = "2025-02-11T23:16:39Z"
116-
end_time = "2025-03-11T23:16:39Z"
118+
# NOTE: Pick an interval for your exclusion with an end_time in the future
119+
# otherwise the exclusion will have no effect.
120+
# This example assumes that the exclusion is set on 2025-02-11.
121+
start_time = "2025-02-11T23:16:39Z"
122+
end_time = "2025-03-11T23:16:39Z"
117123
exclusion_options {
118124
scope = "NO_UPGRADES"
119125
}
@@ -160,7 +166,10 @@ resource "google_container_cluster" "no_minor_or_node_upgrade" {
160166
}
161167
maintenance_exclusion {
162168
exclusion_name = "no_minor_or_node_upgrades_exclusion"
163-
start_time = "2025-02-11T23:16:39Z"
169+
# NOTE: Pick an interval for your exclusion with an end_time in the future
170+
# otherwise the exclusion will have no effect.
171+
# This example assumes that the exclusion is set on 2025-02-11.
172+
start_time = "2025-02-11T23:16:39Z"
164173
# This the end of standard support for 1.31.
165174
end_time = "2025-12-22T00:00:00Z"
166175
exclusion_options {

0 commit comments

Comments
 (0)