From 00cc6ccdfaf54f95e1ec585ce6cbad72f69e802f Mon Sep 17 00:00:00 2001 From: The Magician Date: Tue, 11 Dec 2018 14:18:37 -0800 Subject: [PATCH] Add tpuIpv4CidrBlock for container clusters (#201) /cc @chrisst --- google-beta/resource_container_cluster.go | 6 ++++++ website/docs/r/container_cluster.html.markdown | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/google-beta/resource_container_cluster.go b/google-beta/resource_container_cluster.go index 448ab52273..2c5ee0beef 100644 --- a/google-beta/resource_container_cluster.go +++ b/google-beta/resource_container_cluster.go @@ -591,6 +591,11 @@ func resourceContainerCluster() *schema.Resource { Optional: true, Elem: &schema.Schema{Type: schema.TypeString}, }, + + "tpu_ipv4_cidr_block": { + Computed: true, + Type: schema.TypeString, + }, }, } } @@ -817,6 +822,7 @@ func resourceContainerClusterRead(d *schema.ResourceData, meta interface{}) erro d.Set("subnetwork", cluster.NetworkConfig.Subnetwork) d.Set("enable_binary_authorization", cluster.BinaryAuthorization != nil && cluster.BinaryAuthorization.Enabled) d.Set("enable_tpu", cluster.EnableTpu) + d.Set("tpu_ipv4_cidr_block", cluster.TpuIpv4CidrBlock) if err := d.Set("cluster_autoscaling", flattenClusterAutoscaling(cluster.Autoscaling)); err != nil { return err } diff --git a/website/docs/r/container_cluster.html.markdown b/website/docs/r/container_cluster.html.markdown index 07bd79efc3..ed9cc1093e 100644 --- a/website/docs/r/container_cluster.html.markdown +++ b/website/docs/r/container_cluster.html.markdown @@ -461,6 +461,10 @@ exported: be different than the `min_master_version` set in the config if the master has been updated by GKE. +* `tpu_ipv4_cidr_block` - The IP address range of the Cloud TPUs in this cluster, in + [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + notation (e.g. `1.2.3.4/29`). + ## Timeouts