Skip to content

Commit

Permalink
fix space
Browse files Browse the repository at this point in the history
  • Loading branch information
ericyz committed Nov 12, 2020
1 parent 814b5a8 commit 984b9db
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 16 deletions.
5 changes: 3 additions & 2 deletions autogen/main/firewall.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ resource "google_compute_firewall" "shadow_allow_pods" {
allow { protocol = "sctp" }
allow { protocol = "esp" }
allow { protocol = "ah" }

log_config {
metadata = "INCLUDE_ALL_METADATA"
}
}

resource "google_compute_firewall" "shadow_allow_master" {
count = var.add_shadow_firewall_rules ? 1 : 0

name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-master"
description = "Managed by terraform gke module: A shadow firewall rule to match the fireall allow master and woker nodes communication."
project = local.network_project_id
Expand All @@ -135,6 +135,7 @@ resource "google_compute_firewall" "shadow_allow_master" {
protocol = "tcp"
ports = ["10250", "443"]
}

log_config {
metadata = "INCLUDE_ALL_METADATA"
}
Expand Down
5 changes: 3 additions & 2 deletions firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ resource "google_compute_firewall" "shadow_allow_pods" {
allow { protocol = "sctp" }
allow { protocol = "esp" }
allow { protocol = "ah" }

log_config {
metadata = "INCLUDE_ALL_METADATA"
}
}

resource "google_compute_firewall" "shadow_allow_master" {
count = var.add_shadow_firewall_rules ? 1 : 0

name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-master"
description = "Managed by terraform gke module: A shadow firewall rule to match the fireall allow master and woker nodes communication."
project = local.network_project_id
Expand All @@ -131,6 +131,7 @@ resource "google_compute_firewall" "shadow_allow_master" {
protocol = "tcp"
ports = ["10250", "443"]
}

log_config {
metadata = "INCLUDE_ALL_METADATA"
}
Expand Down
5 changes: 3 additions & 2 deletions modules/beta-private-cluster-update-variant/firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ resource "google_compute_firewall" "shadow_allow_pods" {
allow { protocol = "sctp" }
allow { protocol = "esp" }
allow { protocol = "ah" }

log_config {
metadata = "INCLUDE_ALL_METADATA"
}
}

resource "google_compute_firewall" "shadow_allow_master" {
count = var.add_shadow_firewall_rules ? 1 : 0

name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-master"
description = "Managed by terraform gke module: A shadow firewall rule to match the fireall allow master and woker nodes communication."
project = local.network_project_id
Expand All @@ -125,6 +125,7 @@ resource "google_compute_firewall" "shadow_allow_master" {
protocol = "tcp"
ports = ["10250", "443"]
}

log_config {
metadata = "INCLUDE_ALL_METADATA"
}
Expand Down
5 changes: 3 additions & 2 deletions modules/beta-private-cluster/firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ resource "google_compute_firewall" "shadow_allow_pods" {
allow { protocol = "sctp" }
allow { protocol = "esp" }
allow { protocol = "ah" }

log_config {
metadata = "INCLUDE_ALL_METADATA"
}
}

resource "google_compute_firewall" "shadow_allow_master" {
count = var.add_shadow_firewall_rules ? 1 : 0

name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-master"
description = "Managed by terraform gke module: A shadow firewall rule to match the fireall allow master and woker nodes communication."
project = local.network_project_id
Expand All @@ -125,6 +125,7 @@ resource "google_compute_firewall" "shadow_allow_master" {
protocol = "tcp"
ports = ["10250", "443"]
}

log_config {
metadata = "INCLUDE_ALL_METADATA"
}
Expand Down
5 changes: 3 additions & 2 deletions modules/beta-public-cluster-update-variant/firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ resource "google_compute_firewall" "shadow_allow_pods" {
allow { protocol = "sctp" }
allow { protocol = "esp" }
allow { protocol = "ah" }

log_config {
metadata = "INCLUDE_ALL_METADATA"
}
}

resource "google_compute_firewall" "shadow_allow_master" {
count = var.add_shadow_firewall_rules ? 1 : 0

name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-master"
description = "Managed by terraform gke module: A shadow firewall rule to match the fireall allow master and woker nodes communication."
project = local.network_project_id
Expand All @@ -131,6 +131,7 @@ resource "google_compute_firewall" "shadow_allow_master" {
protocol = "tcp"
ports = ["10250", "443"]
}

log_config {
metadata = "INCLUDE_ALL_METADATA"
}
Expand Down
5 changes: 3 additions & 2 deletions modules/beta-public-cluster/firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ resource "google_compute_firewall" "shadow_allow_pods" {
allow { protocol = "sctp" }
allow { protocol = "esp" }
allow { protocol = "ah" }

log_config {
metadata = "INCLUDE_ALL_METADATA"
}
}

resource "google_compute_firewall" "shadow_allow_master" {
count = var.add_shadow_firewall_rules ? 1 : 0

name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-master"
description = "Managed by terraform gke module: A shadow firewall rule to match the fireall allow master and woker nodes communication."
project = local.network_project_id
Expand All @@ -131,6 +131,7 @@ resource "google_compute_firewall" "shadow_allow_master" {
protocol = "tcp"
ports = ["10250", "443"]
}

log_config {
metadata = "INCLUDE_ALL_METADATA"
}
Expand Down
5 changes: 3 additions & 2 deletions modules/private-cluster-update-variant/firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ resource "google_compute_firewall" "shadow_allow_pods" {
allow { protocol = "sctp" }
allow { protocol = "esp" }
allow { protocol = "ah" }

log_config {
metadata = "INCLUDE_ALL_METADATA"
}
}

resource "google_compute_firewall" "shadow_allow_master" {
count = var.add_shadow_firewall_rules ? 1 : 0

name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-master"
description = "Managed by terraform gke module: A shadow firewall rule to match the fireall allow master and woker nodes communication."
project = local.network_project_id
Expand All @@ -125,6 +125,7 @@ resource "google_compute_firewall" "shadow_allow_master" {
protocol = "tcp"
ports = ["10250", "443"]
}

log_config {
metadata = "INCLUDE_ALL_METADATA"
}
Expand Down
5 changes: 3 additions & 2 deletions modules/private-cluster/firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ resource "google_compute_firewall" "shadow_allow_pods" {
allow { protocol = "sctp" }
allow { protocol = "esp" }
allow { protocol = "ah" }

log_config {
metadata = "INCLUDE_ALL_METADATA"
}
}

resource "google_compute_firewall" "shadow_allow_master" {
count = var.add_shadow_firewall_rules ? 1 : 0

name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-master"
description = "Managed by terraform gke module: A shadow firewall rule to match the fireall allow master and woker nodes communication."
project = local.network_project_id
Expand All @@ -125,6 +125,7 @@ resource "google_compute_firewall" "shadow_allow_master" {
protocol = "tcp"
ports = ["10250", "443"]
}

log_config {
metadata = "INCLUDE_ALL_METADATA"
}
Expand Down

0 comments on commit 984b9db

Please sign in to comment.