From f6c825155014254b64b8bcc13262b4cc0f3267be Mon Sep 17 00:00:00 2001 From: Ken Evensen Date: Fri, 1 Nov 2019 10:14:26 -0700 Subject: [PATCH 1/2] Tying identity namespace output to successful cluster creation. --- autogen/outputs.tf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/autogen/outputs.tf b/autogen/outputs.tf index 704569d00e..842502ecea 100644 --- a/autogen/outputs.tf +++ b/autogen/outputs.tf @@ -154,4 +154,12 @@ output "release_channel" { description = "The release channel of this cluster" value = var.release_channel } + +output "identity_namespace" { + description = "Workload Identity namespace" + value = var.identity_namespace + depends_on = [ + "google_container_cluster.primary" + ] +} {% endif %} From 0fe2f61a67989b1ffbd5d21617005db3a14104ea Mon Sep 17 00:00:00 2001 From: Ken Evensen Date: Fri, 1 Nov 2019 10:16:46 -0700 Subject: [PATCH 2/2] Post generate --- modules/beta-private-cluster-update-variant/README.md | 1 + modules/beta-private-cluster-update-variant/outputs.tf | 8 ++++++++ modules/beta-private-cluster/README.md | 1 + modules/beta-private-cluster/outputs.tf | 8 ++++++++ modules/beta-public-cluster/README.md | 1 + modules/beta-public-cluster/outputs.tf | 8 ++++++++ 6 files changed, 27 insertions(+) diff --git a/modules/beta-private-cluster-update-variant/README.md b/modules/beta-private-cluster-update-variant/README.md index 93daea71ca..e9b13daa59 100644 --- a/modules/beta-private-cluster-update-variant/README.md +++ b/modules/beta-private-cluster-update-variant/README.md @@ -212,6 +212,7 @@ In either case, upgrading to module version `v1.0.0` will trigger a recreation o | endpoint | Cluster endpoint | | horizontal\_pod\_autoscaling\_enabled | Whether horizontal pod autoscaling enabled | | http\_load\_balancing\_enabled | Whether http load balancing enabled | +| identity\_namespace | Workload Identity namespace | | intranode\_visibility\_enabled | Whether intra-node visibility is enabled | | istio\_enabled | Whether Istio is enabled | | kubernetes\_dashboard\_enabled | Whether kubernetes dashboard enabled | diff --git a/modules/beta-private-cluster-update-variant/outputs.tf b/modules/beta-private-cluster-update-variant/outputs.tf index 956c8c2d5d..fb3f29c401 100644 --- a/modules/beta-private-cluster-update-variant/outputs.tf +++ b/modules/beta-private-cluster-update-variant/outputs.tf @@ -153,3 +153,11 @@ output "release_channel" { description = "The release channel of this cluster" value = var.release_channel } + +output "identity_namespace" { + description = "Workload Identity namespace" + value = var.identity_namespace + depends_on = [ + "google_container_cluster.primary" + ] +} diff --git a/modules/beta-private-cluster/README.md b/modules/beta-private-cluster/README.md index 4096848139..ed98fb6093 100644 --- a/modules/beta-private-cluster/README.md +++ b/modules/beta-private-cluster/README.md @@ -212,6 +212,7 @@ In either case, upgrading to module version `v1.0.0` will trigger a recreation o | endpoint | Cluster endpoint | | horizontal\_pod\_autoscaling\_enabled | Whether horizontal pod autoscaling enabled | | http\_load\_balancing\_enabled | Whether http load balancing enabled | +| identity\_namespace | Workload Identity namespace | | intranode\_visibility\_enabled | Whether intra-node visibility is enabled | | istio\_enabled | Whether Istio is enabled | | kubernetes\_dashboard\_enabled | Whether kubernetes dashboard enabled | diff --git a/modules/beta-private-cluster/outputs.tf b/modules/beta-private-cluster/outputs.tf index 956c8c2d5d..fb3f29c401 100644 --- a/modules/beta-private-cluster/outputs.tf +++ b/modules/beta-private-cluster/outputs.tf @@ -153,3 +153,11 @@ output "release_channel" { description = "The release channel of this cluster" value = var.release_channel } + +output "identity_namespace" { + description = "Workload Identity namespace" + value = var.identity_namespace + depends_on = [ + "google_container_cluster.primary" + ] +} diff --git a/modules/beta-public-cluster/README.md b/modules/beta-public-cluster/README.md index 258ea431e4..a9e71538e2 100644 --- a/modules/beta-public-cluster/README.md +++ b/modules/beta-public-cluster/README.md @@ -203,6 +203,7 @@ In either case, upgrading to module version `v1.0.0` will trigger a recreation o | endpoint | Cluster endpoint | | horizontal\_pod\_autoscaling\_enabled | Whether horizontal pod autoscaling enabled | | http\_load\_balancing\_enabled | Whether http load balancing enabled | +| identity\_namespace | Workload Identity namespace | | intranode\_visibility\_enabled | Whether intra-node visibility is enabled | | istio\_enabled | Whether Istio is enabled | | kubernetes\_dashboard\_enabled | Whether kubernetes dashboard enabled | diff --git a/modules/beta-public-cluster/outputs.tf b/modules/beta-public-cluster/outputs.tf index 956c8c2d5d..fb3f29c401 100644 --- a/modules/beta-public-cluster/outputs.tf +++ b/modules/beta-public-cluster/outputs.tf @@ -153,3 +153,11 @@ output "release_channel" { description = "The release channel of this cluster" value = var.release_channel } + +output "identity_namespace" { + description = "Workload Identity namespace" + value = var.identity_namespace + depends_on = [ + "google_container_cluster.primary" + ] +}