From 02f24dd56ad1fc963845730f672608f09b73cbfc 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 8e6df72d92693944d9a1c2f441b65c600ba6aead 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, ] }