Skip to content

Commit

Permalink
add depends_on cluster
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 0988aac commit 88330d6
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 0 deletions.
8 changes: 8 additions & 0 deletions autogen/main/firewall.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ resource "google_compute_firewall" "intra_egress" {
allow { protocol = "sctp" }
allow { protocol = "esp" }
allow { protocol = "ah" }

depends_on = [
google_container_cluster.primary,
]
}


Expand All @@ -72,4 +76,8 @@ resource "google_compute_firewall" "master_ingress" {
ports = var.firewall_inbound_ports
}

depends_on = [
google_container_cluster.primary,
]

}
8 changes: 8 additions & 0 deletions firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ resource "google_compute_firewall" "intra_egress" {
allow { protocol = "sctp" }
allow { protocol = "esp" }
allow { protocol = "ah" }

depends_on = [
google_container_cluster.primary,
]
}


Expand All @@ -72,4 +76,8 @@ resource "google_compute_firewall" "master_ingress" {
ports = var.firewall_inbound_ports
}

depends_on = [
google_container_cluster.primary,
]

}
8 changes: 8 additions & 0 deletions modules/beta-private-cluster-update-variant/firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ resource "google_compute_firewall" "intra_egress" {
allow { protocol = "sctp" }
allow { protocol = "esp" }
allow { protocol = "ah" }

depends_on = [
google_container_cluster.primary,
]
}


Expand All @@ -72,4 +76,8 @@ resource "google_compute_firewall" "master_ingress" {
ports = var.firewall_inbound_ports
}

depends_on = [
google_container_cluster.primary,
]

}
8 changes: 8 additions & 0 deletions modules/beta-private-cluster/firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ resource "google_compute_firewall" "intra_egress" {
allow { protocol = "sctp" }
allow { protocol = "esp" }
allow { protocol = "ah" }

depends_on = [
google_container_cluster.primary,
]
}


Expand All @@ -72,4 +76,8 @@ resource "google_compute_firewall" "master_ingress" {
ports = var.firewall_inbound_ports
}

depends_on = [
google_container_cluster.primary,
]

}
8 changes: 8 additions & 0 deletions modules/beta-public-cluster/firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ resource "google_compute_firewall" "intra_egress" {
allow { protocol = "sctp" }
allow { protocol = "esp" }
allow { protocol = "ah" }

depends_on = [
google_container_cluster.primary,
]
}


Expand All @@ -72,4 +76,8 @@ resource "google_compute_firewall" "master_ingress" {
ports = var.firewall_inbound_ports
}

depends_on = [
google_container_cluster.primary,
]

}
8 changes: 8 additions & 0 deletions modules/private-cluster-update-variant/firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ resource "google_compute_firewall" "intra_egress" {
allow { protocol = "sctp" }
allow { protocol = "esp" }
allow { protocol = "ah" }

depends_on = [
google_container_cluster.primary,
]
}


Expand All @@ -72,4 +76,8 @@ resource "google_compute_firewall" "master_ingress" {
ports = var.firewall_inbound_ports
}

depends_on = [
google_container_cluster.primary,
]

}
8 changes: 8 additions & 0 deletions modules/private-cluster/firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ resource "google_compute_firewall" "intra_egress" {
allow { protocol = "sctp" }
allow { protocol = "esp" }
allow { protocol = "ah" }

depends_on = [
google_container_cluster.primary,
]
}


Expand All @@ -72,4 +76,8 @@ resource "google_compute_firewall" "master_ingress" {
ports = var.firewall_inbound_ports
}

depends_on = [
google_container_cluster.primary,
]

}

0 comments on commit 88330d6

Please sign in to comment.