forked from GoogleCloudPlatform/cloud-foundation-fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GKE Autopilot module: add network tags (GoogleCloudPlatform#1675)
* gke-cluster-autopilot: add support for network tags * gke-cluster-autopilot: add validation for network tags * gke-cluster-autopilot: expand README and fix some typos * gke-cluster-autopilot: fix Cloud DNS section in README Removed a reference to Standard clusters and updated the section to include a warning because the new versions of Autopilot clusters can only use Cloud DNS and it is pre-configured by default so the example in the README does not apply to them. * gke-cluster-autopilot: cosmetic fixes in README * gke-cluster-autopilot: rollback validation on network tags var * gke-cluster-autopilot: rollback docs string update for network tags var * gke-cluster-autopilot: rollback some updates to README * gke-cluster-autopilot: remove dead code * gke-cluster-autopilot: add a tftest for network tags * gke-cluster-autopilot: fix a tftest
- Loading branch information
Showing
6 changed files
with
104 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
project_id = "my-project" | ||
location = "europe-west1" | ||
name = "cluster-1" | ||
vpc_config = { | ||
network = "default" | ||
subnetwork = "default" | ||
} | ||
tags = [ | ||
"deep-dark-wood", | ||
"hello-gruffalo", | ||
"my--precious---nodes", | ||
"cluster-1-nodes", | ||
"nodes-cluster-1", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright 2023 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. | ||
|
||
values: | ||
google_container_cluster.cluster: | ||
node_pool_auto_config: | ||
- network_tags: | ||
- tags: | ||
- cluster-1-nodes | ||
- deep-dark-wood | ||
- hello-gruffalo | ||
- my--precious---nodes | ||
- nodes-cluster-1 | ||
|
||
counts: | ||
google_container_cluster: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright 2023 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. | ||
|
||
module: modules/gke-cluster-autopilot | ||
|
||
tests: | ||
network_tags: |