From 5a2d1e120f0d85a8bd2427a4493d92ac1bd31b0a Mon Sep 17 00:00:00 2001 From: Jan Toebes Date: Wed, 20 Nov 2019 12:37:38 +0100 Subject: [PATCH 1/2] Add dependency to 'wait for resource' Add dependency so helm is not going to access the cluster before it is up and running --- autogen/outputs.tf.tmpl | 1 + 1 file changed, 1 insertion(+) diff --git a/autogen/outputs.tf.tmpl b/autogen/outputs.tf.tmpl index 842502ecea..22fe89862b 100644 --- a/autogen/outputs.tf.tmpl +++ b/autogen/outputs.tf.tmpl @@ -54,6 +54,7 @@ output "endpoint" { */ google_container_cluster.primary, google_container_node_pool.pools, + null_resource.wait_for_cluster.id, ] } From 6aae94a9558b9b865d82c6bbc02a1ce8ad5bc060 Mon Sep 17 00:00:00 2001 From: Jan Toebes Date: Wed, 20 Nov 2019 12:40:41 +0100 Subject: [PATCH 2/2] Add dependency to 'wait for resource' --- modules/beta-private-cluster-update-variant/outputs.tf | 1 + modules/beta-private-cluster/outputs.tf | 1 + modules/beta-public-cluster/outputs.tf | 1 + modules/private-cluster-update-variant/outputs.tf | 1 + modules/private-cluster/outputs.tf | 1 + outputs.tf | 1 + 6 files changed, 6 insertions(+) diff --git a/modules/beta-private-cluster-update-variant/outputs.tf b/modules/beta-private-cluster-update-variant/outputs.tf index fb3f29c401..e4a98aa447 100644 --- a/modules/beta-private-cluster-update-variant/outputs.tf +++ b/modules/beta-private-cluster-update-variant/outputs.tf @@ -54,6 +54,7 @@ output "endpoint" { */ google_container_cluster.primary, google_container_node_pool.pools, + null_resource.wait_for_cluster.id, ] } diff --git a/modules/beta-private-cluster/outputs.tf b/modules/beta-private-cluster/outputs.tf index fb3f29c401..e4a98aa447 100644 --- a/modules/beta-private-cluster/outputs.tf +++ b/modules/beta-private-cluster/outputs.tf @@ -54,6 +54,7 @@ output "endpoint" { */ google_container_cluster.primary, google_container_node_pool.pools, + null_resource.wait_for_cluster.id, ] } diff --git a/modules/beta-public-cluster/outputs.tf b/modules/beta-public-cluster/outputs.tf index fb3f29c401..e4a98aa447 100644 --- a/modules/beta-public-cluster/outputs.tf +++ b/modules/beta-public-cluster/outputs.tf @@ -54,6 +54,7 @@ output "endpoint" { */ google_container_cluster.primary, google_container_node_pool.pools, + null_resource.wait_for_cluster.id, ] } diff --git a/modules/private-cluster-update-variant/outputs.tf b/modules/private-cluster-update-variant/outputs.tf index dea7b5c7b5..3d6e9c8dab 100644 --- a/modules/private-cluster-update-variant/outputs.tf +++ b/modules/private-cluster-update-variant/outputs.tf @@ -54,6 +54,7 @@ output "endpoint" { */ google_container_cluster.primary, google_container_node_pool.pools, + null_resource.wait_for_cluster.id, ] } diff --git a/modules/private-cluster/outputs.tf b/modules/private-cluster/outputs.tf index dea7b5c7b5..3d6e9c8dab 100644 --- a/modules/private-cluster/outputs.tf +++ b/modules/private-cluster/outputs.tf @@ -54,6 +54,7 @@ output "endpoint" { */ google_container_cluster.primary, google_container_node_pool.pools, + null_resource.wait_for_cluster.id, ] } diff --git a/outputs.tf b/outputs.tf index dea7b5c7b5..3d6e9c8dab 100644 --- a/outputs.tf +++ b/outputs.tf @@ -54,6 +54,7 @@ output "endpoint" { */ google_container_cluster.primary, google_container_node_pool.pools, + null_resource.wait_for_cluster.id, ] }