File tree Expand file tree Collapse file tree 5 files changed +68
-0
lines changed Expand file tree Collapse file tree 5 files changed +68
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,18 @@ output "endpoint" {
45
45
sensitive = true
46
46
description = " Cluster endpoint"
47
47
value = local. cluster_endpoint
48
+ depends_on = [
49
+ /* Nominally, the endpoint is populated as soon as it is known to Terraform.
50
+ * However, the cluster may not be in a usable state yet. Therefore any
51
+ * resources dependent on the cluster being up will fail to deploy. With
52
+ * this explicit dependency, dependent resources can wait for the cluster
53
+ * to be up.
54
+ */
55
+ google_container_cluster . primary ,
56
+ google_container_node_pool . pools ,
57
+ google_container_cluster . zonal_primary ,
58
+ google_container_node_pool . zonal_pools ,
59
+ ]
48
60
}
49
61
50
62
output "min_master_version" {
@@ -112,6 +124,7 @@ output "service_account" {
112
124
description = " The service account to default running nodes as if not overridden in `node_pools`."
113
125
value = local. service_account
114
126
}
127
+
115
128
{% if beta_cluster % }
116
129
117
130
output " istio_enabled" {
@@ -128,4 +141,5 @@ output "pod_security_policy_enabled" {
128
141
description = " Whether pod security policy is enabled"
129
142
value = local.cluster_pod_security_policy_enabled
130
143
}
144
+
131
145
{% endif % }
Original file line number Diff line number Diff line change @@ -45,6 +45,18 @@ output "endpoint" {
45
45
sensitive = true
46
46
description = " Cluster endpoint"
47
47
value = local. cluster_endpoint
48
+ depends_on = [
49
+ /* Nominally, the endpoint is populated as soon as it is known to Terraform.
50
+ * However, the cluster may not be in a usable state yet. Therefore any
51
+ * resources dependent on the cluster being up will fail to deploy. With
52
+ * this explicit dependency, dependent resources can wait for the cluster
53
+ * to be up.
54
+ */
55
+ google_container_cluster . primary ,
56
+ google_container_node_pool . pools ,
57
+ google_container_cluster . zonal_primary ,
58
+ google_container_node_pool . zonal_pools ,
59
+ ]
48
60
}
49
61
50
62
output "min_master_version" {
@@ -113,6 +125,7 @@ output "service_account" {
113
125
value = local. service_account
114
126
}
115
127
128
+
116
129
output "istio_enabled" {
117
130
description = " Whether Istio is enabled"
118
131
value = local. cluster_istio_enabled
@@ -127,3 +140,4 @@ output "pod_security_policy_enabled" {
127
140
description = " Whether pod security policy is enabled"
128
141
value = local. cluster_pod_security_policy_enabled
129
142
}
143
+
Original file line number Diff line number Diff line change @@ -45,6 +45,18 @@ output "endpoint" {
45
45
sensitive = true
46
46
description = " Cluster endpoint"
47
47
value = local. cluster_endpoint
48
+ depends_on = [
49
+ /* Nominally, the endpoint is populated as soon as it is known to Terraform.
50
+ * However, the cluster may not be in a usable state yet. Therefore any
51
+ * resources dependent on the cluster being up will fail to deploy. With
52
+ * this explicit dependency, dependent resources can wait for the cluster
53
+ * to be up.
54
+ */
55
+ google_container_cluster . primary ,
56
+ google_container_node_pool . pools ,
57
+ google_container_cluster . zonal_primary ,
58
+ google_container_node_pool . zonal_pools ,
59
+ ]
48
60
}
49
61
50
62
output "min_master_version" {
@@ -113,6 +125,7 @@ output "service_account" {
113
125
value = local. service_account
114
126
}
115
127
128
+
116
129
output "istio_enabled" {
117
130
description = " Whether Istio is enabled"
118
131
value = local. cluster_istio_enabled
@@ -127,3 +140,4 @@ output "pod_security_policy_enabled" {
127
140
description = " Whether pod security policy is enabled"
128
141
value = local. cluster_pod_security_policy_enabled
129
142
}
143
+
Original file line number Diff line number Diff line change @@ -45,6 +45,18 @@ output "endpoint" {
45
45
sensitive = true
46
46
description = " Cluster endpoint"
47
47
value = local. cluster_endpoint
48
+ depends_on = [
49
+ /* Nominally, the endpoint is populated as soon as it is known to Terraform.
50
+ * However, the cluster may not be in a usable state yet. Therefore any
51
+ * resources dependent on the cluster being up will fail to deploy. With
52
+ * this explicit dependency, dependent resources can wait for the cluster
53
+ * to be up.
54
+ */
55
+ google_container_cluster . primary ,
56
+ google_container_node_pool . pools ,
57
+ google_container_cluster . zonal_primary ,
58
+ google_container_node_pool . zonal_pools ,
59
+ ]
48
60
}
49
61
50
62
output "min_master_version" {
@@ -112,3 +124,4 @@ output "service_account" {
112
124
description = " The service account to default running nodes as if not overridden in `node_pools`."
113
125
value = local. service_account
114
126
}
127
+
Original file line number Diff line number Diff line change @@ -45,6 +45,18 @@ output "endpoint" {
45
45
sensitive = true
46
46
description = " Cluster endpoint"
47
47
value = local. cluster_endpoint
48
+ depends_on = [
49
+ /* Nominally, the endpoint is populated as soon as it is known to Terraform.
50
+ * However, the cluster may not be in a usable state yet. Therefore any
51
+ * resources dependent on the cluster being up will fail to deploy. With
52
+ * this explicit dependency, dependent resources can wait for the cluster
53
+ * to be up.
54
+ */
55
+ google_container_cluster . primary ,
56
+ google_container_node_pool . pools ,
57
+ google_container_cluster . zonal_primary ,
58
+ google_container_node_pool . zonal_pools ,
59
+ ]
48
60
}
49
61
50
62
output "min_master_version" {
@@ -112,3 +124,4 @@ output "service_account" {
112
124
description = " The service account to default running nodes as if not overridden in `node_pools`."
113
125
value = local. service_account
114
126
}
127
+
You can’t perform that action at this time.
0 commit comments