Skip to content

Commit

Permalink
Merge pull request #6283 from jstuever/cors2038
Browse files Browse the repository at this point in the history
gcp: specify network_project_id for network and subnets
  • Loading branch information
openshift-merge-robot authored Sep 1, 2022
2 parents 679e56e + bfb374e commit ba0e40c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions data/data/gcp/cluster/network/common.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,22 @@
data "google_compute_network" "preexisting_cluster_network" {
count = var.preexisting_network ? 1 : 0

name = var.cluster_network
name = var.cluster_network
project = var.network_project_id
}

data "google_compute_subnetwork" "preexisting_master_subnet" {
count = var.preexisting_network ? 1 : 0

name = var.master_subnet
name = var.master_subnet
project = var.network_project_id
}

data "google_compute_subnetwork" "preexisting_worker_subnet" {
count = var.preexisting_network ? 1 : 0

name = var.worker_subnet
name = var.worker_subnet
project = var.network_project_id
}

locals {
Expand Down

0 comments on commit ba0e40c

Please sign in to comment.