Skip to content

Commit

Permalink
Use local.network_project_id
Browse files Browse the repository at this point in the history
Signed-off-by: Dev <devan2patel@gmail.com>
  • Loading branch information
Dev25 committed Apr 1, 2020
1 parent 78822e7 commit 0988aac
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions autogen/main/firewall.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "google_compute_firewall" "intra_egress" {
count = var.firewall_enabled ? 1 : 0
name = "gke-${var.name}-allow-intra-cluster-egress"
description = "Managed by terraform gke module: Allow pods to communicate with each other and the master"
project = var.network_project_id
project = local.network_project_id
network = var.network
priority = var.firewall_priority
direction = "EGRESS"
Expand Down Expand Up @@ -59,7 +59,7 @@ resource "google_compute_firewall" "master_ingress" {
count = var.firewall_enabled ? 1 : 0
name = "gke-${var.name}-allow-master-ingress"
description = "Managed by terraform gke module: Allow master to hit pods for admission controllers/webhooks"
project = var.network_project_id
project = local.network_project_id
network = var.network
priority = var.firewall_priority
direction = "INGRESS"
Expand Down
4 changes: 2 additions & 2 deletions firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "google_compute_firewall" "intra_egress" {
count = var.firewall_enabled ? 1 : 0
name = "gke-${var.name}-allow-intra-cluster-egress"
description = "Managed by terraform gke module: Allow pods to communicate with each other and the master"
project = var.network_project_id
project = local.network_project_id
network = var.network
priority = var.firewall_priority
direction = "EGRESS"
Expand Down Expand Up @@ -59,7 +59,7 @@ resource "google_compute_firewall" "master_ingress" {
count = var.firewall_enabled ? 1 : 0
name = "gke-${var.name}-allow-master-ingress"
description = "Managed by terraform gke module: Allow master to hit pods for admission controllers/webhooks"
project = var.network_project_id
project = local.network_project_id
network = var.network
priority = var.firewall_priority
direction = "INGRESS"
Expand Down
4 changes: 2 additions & 2 deletions modules/beta-private-cluster-update-variant/firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "google_compute_firewall" "intra_egress" {
count = var.firewall_enabled ? 1 : 0
name = "gke-${var.name}-allow-intra-cluster-egress"
description = "Managed by terraform gke module: Allow pods to communicate with each other and the master"
project = var.network_project_id
project = local.network_project_id
network = var.network
priority = var.firewall_priority
direction = "EGRESS"
Expand Down Expand Up @@ -59,7 +59,7 @@ resource "google_compute_firewall" "master_ingress" {
count = var.firewall_enabled ? 1 : 0
name = "gke-${var.name}-allow-master-ingress"
description = "Managed by terraform gke module: Allow master to hit pods for admission controllers/webhooks"
project = var.network_project_id
project = local.network_project_id
network = var.network
priority = var.firewall_priority
direction = "INGRESS"
Expand Down
4 changes: 2 additions & 2 deletions modules/beta-private-cluster/firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "google_compute_firewall" "intra_egress" {
count = var.firewall_enabled ? 1 : 0
name = "gke-${var.name}-allow-intra-cluster-egress"
description = "Managed by terraform gke module: Allow pods to communicate with each other and the master"
project = var.network_project_id
project = local.network_project_id
network = var.network
priority = var.firewall_priority
direction = "EGRESS"
Expand Down Expand Up @@ -59,7 +59,7 @@ resource "google_compute_firewall" "master_ingress" {
count = var.firewall_enabled ? 1 : 0
name = "gke-${var.name}-allow-master-ingress"
description = "Managed by terraform gke module: Allow master to hit pods for admission controllers/webhooks"
project = var.network_project_id
project = local.network_project_id
network = var.network
priority = var.firewall_priority
direction = "INGRESS"
Expand Down
4 changes: 2 additions & 2 deletions modules/beta-public-cluster/firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "google_compute_firewall" "intra_egress" {
count = var.firewall_enabled ? 1 : 0
name = "gke-${var.name}-allow-intra-cluster-egress"
description = "Managed by terraform gke module: Allow pods to communicate with each other and the master"
project = var.network_project_id
project = local.network_project_id
network = var.network
priority = var.firewall_priority
direction = "EGRESS"
Expand Down Expand Up @@ -59,7 +59,7 @@ resource "google_compute_firewall" "master_ingress" {
count = var.firewall_enabled ? 1 : 0
name = "gke-${var.name}-allow-master-ingress"
description = "Managed by terraform gke module: Allow master to hit pods for admission controllers/webhooks"
project = var.network_project_id
project = local.network_project_id
network = var.network
priority = var.firewall_priority
direction = "INGRESS"
Expand Down
4 changes: 2 additions & 2 deletions modules/private-cluster-update-variant/firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "google_compute_firewall" "intra_egress" {
count = var.firewall_enabled ? 1 : 0
name = "gke-${var.name}-allow-intra-cluster-egress"
description = "Managed by terraform gke module: Allow pods to communicate with each other and the master"
project = var.network_project_id
project = local.network_project_id
network = var.network
priority = var.firewall_priority
direction = "EGRESS"
Expand Down Expand Up @@ -59,7 +59,7 @@ resource "google_compute_firewall" "master_ingress" {
count = var.firewall_enabled ? 1 : 0
name = "gke-${var.name}-allow-master-ingress"
description = "Managed by terraform gke module: Allow master to hit pods for admission controllers/webhooks"
project = var.network_project_id
project = local.network_project_id
network = var.network
priority = var.firewall_priority
direction = "INGRESS"
Expand Down
4 changes: 2 additions & 2 deletions modules/private-cluster/firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "google_compute_firewall" "intra_egress" {
count = var.firewall_enabled ? 1 : 0
name = "gke-${var.name}-allow-intra-cluster-egress"
description = "Managed by terraform gke module: Allow pods to communicate with each other and the master"
project = var.network_project_id
project = local.network_project_id
network = var.network
priority = var.firewall_priority
direction = "EGRESS"
Expand Down Expand Up @@ -59,7 +59,7 @@ resource "google_compute_firewall" "master_ingress" {
count = var.firewall_enabled ? 1 : 0
name = "gke-${var.name}-allow-master-ingress"
description = "Managed by terraform gke module: Allow master to hit pods for admission controllers/webhooks"
project = var.network_project_id
project = local.network_project_id
network = var.network
priority = var.firewall_priority
direction = "INGRESS"
Expand Down

0 comments on commit 0988aac

Please sign in to comment.