-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use instance-groups managed tags in firewall
- Loading branch information
Showing
6 changed files
with
39 additions
and
7 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,18 @@ | ||
### | ||
# This file contains no business logic. | ||
# It's sole goal is to provide a way to read out the tags of the node pool, which include the ones we apply with this component + the ones Generated by Google. | ||
### | ||
|
||
locals { | ||
# includes the by GCP-managed tags | ||
all_primary_node_pool_tags = sort(data.google_compute_instance.primary_node_pool.tags) | ||
} | ||
|
||
data "google_compute_instance_group" "primary_node_pool" { | ||
depends_on = [google_container_node_pool.primary_node_pool] | ||
self_link = element(google_container_node_pool.primary_node_pool.managed_instance_group_urls, 0) | ||
} | ||
|
||
data "google_compute_instance" "primary_node_pool" { | ||
self_link = tolist(data.google_compute_instance_group.primary_node_pool.instances)[0] | ||
} |
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