Skip to content

Commit

Permalink
add random string to subnet names
Browse files Browse the repository at this point in the history
  • Loading branch information
jmymy committed Feb 24, 2022
1 parent bf99627 commit da0d157
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/simple_autopilot_private/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ resource "random_string" "suffix" {
locals {
cluster_type = "simple-autopilot-private"
network_name = "simple-autopilot-network-${random_string.suffix.result}"
subnet_name = "simple-autopilot-subnet"
master_auth_subnetwork = "simple-autopilot-master-subnet"
subnet_name = "simple-autopilot-subnet-${random_string.suffix.result}"
master_auth_subnetwork = "simple-autopilot-master-subnet-${random_string.suffix.result}"
pods_range_name = "ip-range-pods-${random_string.suffix.result}"
svc_range_name = "ip-range-svc-${random_string.suffix.result}"
subnet_names = [for subnet_self_link in module.gcp-network.subnets_self_links : split("/", subnet_self_link)[length(split("/", subnet_self_link)) - 1]]
Expand Down
4 changes: 2 additions & 2 deletions examples/simple_autopilot_public/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ resource "random_string" "suffix" {
locals {
cluster_type = "simple-autopilot-public"
network_name = "simple-autopilot-network-${random_string.suffix.result}"
subnet_name = "simple-autopilot-subnet"
master_auth_subnetwork = "simple-autopilot-master-subnet"
subnet_name = "simple-autopilot-subnet-${random_string.suffix.result}"
master_auth_subnetwork = "simple-autopilot-master-subnet-${random_string.suffix.result}"
pods_range_name = "ip-range-pods-${random_string.suffix.result}"
svc_range_name = "ip-range-svc-${random_string.suffix.result}"
subnet_names = [for subnet_self_link in module.gcp-network.subnets_self_links : split("/", subnet_self_link)[length(split("/", subnet_self_link)) - 1]]
Expand Down

0 comments on commit da0d157

Please sign in to comment.