Skip to content

Commit c6d313a

Browse files
committed
fix formatting
1 parent 5eeb668 commit c6d313a

File tree

8 files changed

+128
-128
lines changed

8 files changed

+128
-128
lines changed

autogen/main/firewall.tf.tmpl

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -119,24 +119,24 @@ resource "google_compute_firewall" "shadow_allow_pods" {
119119
}
120120

121121
resource "google_compute_firewall" "shadow_allow_master" {
122-
count = var.add_shadow_firewall_rules ? 1 : 0
122+
count = var.add_shadow_firewall_rules ? 1 : 0
123123

124-
name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-master"
125-
description = "Managed by terraform gke module: A shadow firewall rule to match the fireall allow master and woker nodes communication."
126-
project = local.network_project_id
127-
network = var.network
128-
priority = var.shadow_firewall_rules_priority
129-
direction = "INGRESS"
124+
name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-master"
125+
description = "Managed by terraform gke module: A shadow firewall rule to match the fireall allow master and woker nodes communication."
126+
project = local.network_project_id
127+
network = var.network
128+
priority = var.shadow_firewall_rules_priority
129+
direction = "INGRESS"
130130

131131
source_ranges = [local.cluster_endpoint_for_nodes]
132132
target_tags = [local.cluster_network_tag]
133133

134-
allow {
135-
protocol = "tcp"
136-
ports = ["10250", "443"]
134+
allow {
135+
protocol = "tcp"
136+
ports = ["10250", "443"]
137137
}
138138
log_config {
139-
metadata = "INCLUDE_ALL_METADATA"
139+
metadata = "INCLUDE_ALL_METADATA"
140140
}
141141
}
142142

@@ -153,18 +153,18 @@ resource "google_compute_firewall" "shadow_allow_nodes" {
153153
source_ranges = [local.cluster_subnet_cidr]
154154
target_tags = [local.cluster_network_tag]
155155

156-
allow {
156+
allow {
157157
protocol = "icmp"
158158
}
159159

160-
allow {
160+
allow {
161161
protocol = "udp"
162-
ports = ["1-65535"]
162+
ports = ["1-65535"]
163163
}
164164

165-
allow {
165+
allow {
166166
protocol = "tcp"
167-
ports = ["1-65535"]
167+
ports = ["1-65535"]
168168
}
169169

170170
log_config {

firewall.tf

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -115,24 +115,24 @@ resource "google_compute_firewall" "shadow_allow_pods" {
115115
}
116116

117117
resource "google_compute_firewall" "shadow_allow_master" {
118-
count = var.add_shadow_firewall_rules ? 1 : 0
118+
count = var.add_shadow_firewall_rules ? 1 : 0
119119

120-
name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-master"
121-
description = "Managed by terraform gke module: A shadow firewall rule to match the fireall allow master and woker nodes communication."
122-
project = local.network_project_id
123-
network = var.network
124-
priority = var.shadow_firewall_rules_priority
125-
direction = "INGRESS"
120+
name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-master"
121+
description = "Managed by terraform gke module: A shadow firewall rule to match the fireall allow master and woker nodes communication."
122+
project = local.network_project_id
123+
network = var.network
124+
priority = var.shadow_firewall_rules_priority
125+
direction = "INGRESS"
126126

127127
source_ranges = [local.cluster_endpoint_for_nodes]
128128
target_tags = [local.cluster_network_tag]
129129

130-
allow {
131-
protocol = "tcp"
132-
ports = ["10250", "443"]
130+
allow {
131+
protocol = "tcp"
132+
ports = ["10250", "443"]
133133
}
134134
log_config {
135-
metadata = "INCLUDE_ALL_METADATA"
135+
metadata = "INCLUDE_ALL_METADATA"
136136
}
137137
}
138138

@@ -149,18 +149,18 @@ resource "google_compute_firewall" "shadow_allow_nodes" {
149149
source_ranges = [local.cluster_subnet_cidr]
150150
target_tags = [local.cluster_network_tag]
151151

152-
allow {
152+
allow {
153153
protocol = "icmp"
154154
}
155155

156-
allow {
156+
allow {
157157
protocol = "udp"
158-
ports = ["1-65535"]
158+
ports = ["1-65535"]
159159
}
160160

161-
allow {
161+
allow {
162162
protocol = "tcp"
163-
ports = ["1-65535"]
163+
ports = ["1-65535"]
164164
}
165165

166166
log_config {

modules/beta-private-cluster-update-variant/firewall.tf

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -109,24 +109,24 @@ resource "google_compute_firewall" "shadow_allow_pods" {
109109
}
110110

111111
resource "google_compute_firewall" "shadow_allow_master" {
112-
count = var.add_shadow_firewall_rules ? 1 : 0
112+
count = var.add_shadow_firewall_rules ? 1 : 0
113113

114-
name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-master"
115-
description = "Managed by terraform gke module: A shadow firewall rule to match the fireall allow master and woker nodes communication."
116-
project = local.network_project_id
117-
network = var.network
118-
priority = var.shadow_firewall_rules_priority
119-
direction = "INGRESS"
114+
name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-master"
115+
description = "Managed by terraform gke module: A shadow firewall rule to match the fireall allow master and woker nodes communication."
116+
project = local.network_project_id
117+
network = var.network
118+
priority = var.shadow_firewall_rules_priority
119+
direction = "INGRESS"
120120

121121
source_ranges = [local.cluster_endpoint_for_nodes]
122122
target_tags = [local.cluster_network_tag]
123123

124-
allow {
125-
protocol = "tcp"
126-
ports = ["10250", "443"]
124+
allow {
125+
protocol = "tcp"
126+
ports = ["10250", "443"]
127127
}
128128
log_config {
129-
metadata = "INCLUDE_ALL_METADATA"
129+
metadata = "INCLUDE_ALL_METADATA"
130130
}
131131
}
132132

@@ -143,18 +143,18 @@ resource "google_compute_firewall" "shadow_allow_nodes" {
143143
source_ranges = [local.cluster_subnet_cidr]
144144
target_tags = [local.cluster_network_tag]
145145

146-
allow {
146+
allow {
147147
protocol = "icmp"
148148
}
149149

150-
allow {
150+
allow {
151151
protocol = "udp"
152-
ports = ["1-65535"]
152+
ports = ["1-65535"]
153153
}
154154

155-
allow {
155+
allow {
156156
protocol = "tcp"
157-
ports = ["1-65535"]
157+
ports = ["1-65535"]
158158
}
159159

160160
log_config {

modules/beta-private-cluster/firewall.tf

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -109,24 +109,24 @@ resource "google_compute_firewall" "shadow_allow_pods" {
109109
}
110110

111111
resource "google_compute_firewall" "shadow_allow_master" {
112-
count = var.add_shadow_firewall_rules ? 1 : 0
112+
count = var.add_shadow_firewall_rules ? 1 : 0
113113

114-
name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-master"
115-
description = "Managed by terraform gke module: A shadow firewall rule to match the fireall allow master and woker nodes communication."
116-
project = local.network_project_id
117-
network = var.network
118-
priority = var.shadow_firewall_rules_priority
119-
direction = "INGRESS"
114+
name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-master"
115+
description = "Managed by terraform gke module: A shadow firewall rule to match the fireall allow master and woker nodes communication."
116+
project = local.network_project_id
117+
network = var.network
118+
priority = var.shadow_firewall_rules_priority
119+
direction = "INGRESS"
120120

121121
source_ranges = [local.cluster_endpoint_for_nodes]
122122
target_tags = [local.cluster_network_tag]
123123

124-
allow {
125-
protocol = "tcp"
126-
ports = ["10250", "443"]
124+
allow {
125+
protocol = "tcp"
126+
ports = ["10250", "443"]
127127
}
128128
log_config {
129-
metadata = "INCLUDE_ALL_METADATA"
129+
metadata = "INCLUDE_ALL_METADATA"
130130
}
131131
}
132132

@@ -143,18 +143,18 @@ resource "google_compute_firewall" "shadow_allow_nodes" {
143143
source_ranges = [local.cluster_subnet_cidr]
144144
target_tags = [local.cluster_network_tag]
145145

146-
allow {
146+
allow {
147147
protocol = "icmp"
148148
}
149149

150-
allow {
150+
allow {
151151
protocol = "udp"
152-
ports = ["1-65535"]
152+
ports = ["1-65535"]
153153
}
154154

155-
allow {
155+
allow {
156156
protocol = "tcp"
157-
ports = ["1-65535"]
157+
ports = ["1-65535"]
158158
}
159159

160160
log_config {

modules/beta-public-cluster-update-variant/firewall.tf

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -115,24 +115,24 @@ resource "google_compute_firewall" "shadow_allow_pods" {
115115
}
116116

117117
resource "google_compute_firewall" "shadow_allow_master" {
118-
count = var.add_shadow_firewall_rules ? 1 : 0
118+
count = var.add_shadow_firewall_rules ? 1 : 0
119119

120-
name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-master"
121-
description = "Managed by terraform gke module: A shadow firewall rule to match the fireall allow master and woker nodes communication."
122-
project = local.network_project_id
123-
network = var.network
124-
priority = var.shadow_firewall_rules_priority
125-
direction = "INGRESS"
120+
name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-master"
121+
description = "Managed by terraform gke module: A shadow firewall rule to match the fireall allow master and woker nodes communication."
122+
project = local.network_project_id
123+
network = var.network
124+
priority = var.shadow_firewall_rules_priority
125+
direction = "INGRESS"
126126

127127
source_ranges = [local.cluster_endpoint_for_nodes]
128128
target_tags = [local.cluster_network_tag]
129129

130-
allow {
131-
protocol = "tcp"
132-
ports = ["10250", "443"]
130+
allow {
131+
protocol = "tcp"
132+
ports = ["10250", "443"]
133133
}
134134
log_config {
135-
metadata = "INCLUDE_ALL_METADATA"
135+
metadata = "INCLUDE_ALL_METADATA"
136136
}
137137
}
138138

@@ -149,18 +149,18 @@ resource "google_compute_firewall" "shadow_allow_nodes" {
149149
source_ranges = [local.cluster_subnet_cidr]
150150
target_tags = [local.cluster_network_tag]
151151

152-
allow {
152+
allow {
153153
protocol = "icmp"
154154
}
155155

156-
allow {
156+
allow {
157157
protocol = "udp"
158-
ports = ["1-65535"]
158+
ports = ["1-65535"]
159159
}
160160

161-
allow {
161+
allow {
162162
protocol = "tcp"
163-
ports = ["1-65535"]
163+
ports = ["1-65535"]
164164
}
165165

166166
log_config {

modules/beta-public-cluster/firewall.tf

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -115,24 +115,24 @@ resource "google_compute_firewall" "shadow_allow_pods" {
115115
}
116116

117117
resource "google_compute_firewall" "shadow_allow_master" {
118-
count = var.add_shadow_firewall_rules ? 1 : 0
118+
count = var.add_shadow_firewall_rules ? 1 : 0
119119

120-
name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-master"
121-
description = "Managed by terraform gke module: A shadow firewall rule to match the fireall allow master and woker nodes communication."
122-
project = local.network_project_id
123-
network = var.network
124-
priority = var.shadow_firewall_rules_priority
125-
direction = "INGRESS"
120+
name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-master"
121+
description = "Managed by terraform gke module: A shadow firewall rule to match the fireall allow master and woker nodes communication."
122+
project = local.network_project_id
123+
network = var.network
124+
priority = var.shadow_firewall_rules_priority
125+
direction = "INGRESS"
126126

127127
source_ranges = [local.cluster_endpoint_for_nodes]
128128
target_tags = [local.cluster_network_tag]
129129

130-
allow {
131-
protocol = "tcp"
132-
ports = ["10250", "443"]
130+
allow {
131+
protocol = "tcp"
132+
ports = ["10250", "443"]
133133
}
134134
log_config {
135-
metadata = "INCLUDE_ALL_METADATA"
135+
metadata = "INCLUDE_ALL_METADATA"
136136
}
137137
}
138138

@@ -149,18 +149,18 @@ resource "google_compute_firewall" "shadow_allow_nodes" {
149149
source_ranges = [local.cluster_subnet_cidr]
150150
target_tags = [local.cluster_network_tag]
151151

152-
allow {
152+
allow {
153153
protocol = "icmp"
154154
}
155155

156-
allow {
156+
allow {
157157
protocol = "udp"
158-
ports = ["1-65535"]
158+
ports = ["1-65535"]
159159
}
160160

161-
allow {
161+
allow {
162162
protocol = "tcp"
163-
ports = ["1-65535"]
163+
ports = ["1-65535"]
164164
}
165165

166166
log_config {

0 commit comments

Comments
 (0)