Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
200 changes: 0 additions & 200 deletions gke/standard/zonal/no-channel-to-release-channel/main.tf

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/**
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

# NOTE: Locations are different in these examples to satisfy the tests.
# These are intended to represent sequential steps on the same cluster.

# [START gke_standard_release_channel_no_minor_or_node_upgrade]
resource "google_container_cluster" "default" {
name = "cluster-zonal-example-none-to-rc"
location = "us-central1-f"

release_channel {
channel = "REGULAR"
}

maintenance_policy {
recurring_window {
start_time = "2025-02-11T19:16:39Z"
end_time = "2025-02-11T23:16:39Z"
recurrence = "FREQ=DAILY"
}
maintenance_exclusion {
exclusion_name = "no_minor_or_node_upgrades_exclusion"
# NOTE: Pick an interval for your exclusion with an end_time in the future
# otherwise the exclusion will have no effect.
# This example assumes that the exclusion is set on 2025-02-11.
start_time = "2025-02-11T23:16:39Z"
# This the end of standard support for 1.31.
end_time = "2025-12-22T00:00:00Z"
exclusion_options {
scope = "NO_MINOR_OR_NODE_UPGRADES"
}
}
}

remove_default_node_pool = true
initial_node_count = 1
}

resource "google_container_node_pool" "default" {
name = "cluster-zonal-example-none-to-rc-np"
cluster = google_container_cluster.default.id

node_count = 2

management {
auto_repair = true
auto_upgrade = true
}
}
# [END gke_standard_release_channel_no_minor_or_node_upgrade]
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/**
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

# NOTE: Locations are different in these examples to satisfy the tests.
# These are intended to represent sequential steps on the same cluster.

# [START gke_standard_release_channel_no_upgrade]
resource "google_container_cluster" "default" {
name = "cluster-zonal-example-none-to-rc"
location = "us-central1-b"

release_channel {
channel = "UNSPECIFIED"
}

maintenance_policy {
# A recurring window must be set to use maintenance exclusions in Terraform.
recurring_window {
start_time = "2025-02-11T19:16:39Z"
end_time = "2025-02-11T23:16:39Z"
recurrence = "FREQ=DAILY"
}
maintenance_exclusion {
exclusion_name = "no_upgrades_exclusion"
# NOTE: Pick an interval for your exclusion with an end_time in the future
# otherwise the exclusion will have no effect.
# This example assumes that the exclusion is set on 2025-02-11.
start_time = "2025-02-11T23:16:39Z"
# NO_UPGRADES exclusions are limited to 30 days.
end_time = "2025-03-11T23:16:39Z"
exclusion_options {
scope = "NO_UPGRADES"
}
}
}

remove_default_node_pool = true
initial_node_count = 1
}

resource "google_container_node_pool" "default" {
name = "cluster-zonal-example-none-to-rc-np"
cluster = google_container_cluster.default.id

node_count = 2

management {
auto_repair = false
auto_upgrade = false
}
}
# [END gke_standard_release_channel_no_upgrade]
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

# NOTE: Locations are different in these examples to satisfy the tests.
# These are intended to represent sequential steps on the same cluster.

# [START gke_standard_release_channel_none]
resource "google_container_cluster" "default" {
name = "cluster-zonal-example-none-to-rc"
location = "us-central1-a"

release_channel {
channel = "UNSPECIFIED"
}

remove_default_node_pool = true
initial_node_count = 1
}

resource "google_container_node_pool" "default" {
name = "cluster-zonal-example-none-to-rc-np"
cluster = google_container_cluster.default.id

node_count = 2

management {
auto_repair = false
auto_upgrade = false
}
}
# [END gke_standard_release_channel_none]
Loading