From 6abc8e0593c8d29094da630035b438b7ba0d090d Mon Sep 17 00:00:00 2001 From: Gus Narea Date: Sun, 1 Nov 2020 21:43:36 +0000 Subject: [PATCH] Work around https://github.com/codefresh-io/terraform-provider-codefresh/issues/20 --- tf-modules/base/outputs.tf | 4 +++- tf-workspace/outputs.tf | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 tf-workspace/outputs.tf diff --git a/tf-modules/base/outputs.tf b/tf-modules/base/outputs.tf index 74878972..3baa039b 100644 --- a/tf-modules/base/outputs.tf +++ b/tf-modules/base/outputs.tf @@ -92,7 +92,9 @@ EOF output "gke_cluster_endpoint" { value = google_container_cluster.primary.endpoint } - +output "gke_cluster_ca_certificate" { + value = google_container_cluster.primary.master_auth[0].cluster_ca_certificate +} output "cd_service_account_secret" { value = kubernetes_service_account.cd.secret } diff --git a/tf-workspace/outputs.tf b/tf-workspace/outputs.tf new file mode 100644 index 00000000..e1b5b5f0 --- /dev/null +++ b/tf-workspace/outputs.tf @@ -0,0 +1,9 @@ +// Output Kubernetes connection arguments so that we can configure CodeFresh by hand. See: +// https://github.com/codefresh-io/terraform-provider-codefresh/issues/20 +output "gw_test_cd_connection" { + value = <