Skip to content

Commit 8cf605f

Browse files
arekkasdanawillow
authored andcommitted
Document that GKE master_auth key is an array (hashicorp#617)
* Document that GKE master_auth key is an array This resolves hashicorp/terraform#16417 and is a follow up to hashicorp/terraform#14073 * Update container_cluster.html.markdown * Update container_cluster.html.markdown * Update container_cluster.html.markdown
1 parent 905ee21 commit 8cf605f

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

website/docs/r/container_cluster.html.markdown

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,19 @@ resource "google_container_cluster" "primary" {
4949
tags = ["foo", "bar"]
5050
}
5151
}
52+
53+
# The following outputs allow authentication and connectivity to the Google Container Cluster.
54+
output "client_certificate" {
55+
value = "${google_container_cluster.primary.master_auth.0.client_certificate}"
56+
}
57+
58+
output "client_key" {
59+
value = "${google_container_cluster.primary.master_auth.0.client_key}"
60+
}
61+
62+
output "cluster_ca_certificate" {
63+
value = "${google_container_cluster.primary.master_auth.0.cluster_ca_certificate}"
64+
}
5265
```
5366

5467
## Argument Reference
@@ -214,13 +227,13 @@ exported:
214227
* `instance_group_urls` - List of instance group URLs which have been assigned
215228
to the cluster.
216229

217-
* `master_auth.client_certificate` - Base64 encoded public certificate
230+
* `master_auth.0.client_certificate` - Base64 encoded public certificate
218231
used by clients to authenticate to the cluster endpoint.
219232

220-
* `master_auth.client_key` - Base64 encoded private key used by clients
233+
* `master_auth.0.client_key` - Base64 encoded private key used by clients
221234
to authenticate to the cluster endpoint.
222235

223-
* `master_auth.cluster_ca_certificate` - Base64 encoded public certificate
236+
* `master_auth.0.cluster_ca_certificate` - Base64 encoded public certificate
224237
that is the root of trust for the cluster.
225238

226239
* `master_version` - The current version of the master in the cluster. This may
@@ -243,4 +256,4 @@ Container clusters can be imported using the `zone`, and `name`, e.g.
243256

244257
```
245258
$ terraform import google_container_cluster.mycluster us-east1-a/my-cluster
246-
```
259+
```

0 commit comments

Comments
 (0)