Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Nov 1, 2020
1 parent b980440 commit 6abc8e0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tf-modules/base/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
9 changes: 9 additions & 0 deletions tf-workspace/outputs.tf
Original file line number Diff line number Diff line change
@@ -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 = <<EOF
cluster_endpoint: ${module.gw_test.gke_cluster_endpoint}
cluster_ca_certificate: ${module.gw_test.gke_cluster_ca_certificate}
satoken: ${module.gw_test.cd_service_account_secret}
EOF
}

0 comments on commit 6abc8e0

Please sign in to comment.