Skip to content

Commit

Permalink
Merge 2e03d64 into 629bb8b
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisst authored Dec 11, 2018
2 parents 629bb8b + 2e03d64 commit 5213212
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions products/container/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ objects:
The IP address range of the container pods in this cluster, in CIDR
notation (e.g. 10.96.0.0/14). Leave blank to have one automatically
chosen or specify a /14 block in 10.0.0.0/8.
- !ruby/object:Api::Type::String
name: 'tpuIpv4CidrBlock'
output: true
description: |
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`).
- !ruby/object:Api::Type::NestedObject
name: 'addonsConfig'
description: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,13 @@ func resourceContainerCluster() *schema.Resource {
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
},

<% unless version == 'ga' -%>
"tpu_ipv4_cidr_block": {
Computed: true,
Type: schema.TypeString,
},
<% end -%>
},
}
}
Expand Down Expand Up @@ -841,6 +848,7 @@ func resourceContainerClusterRead(d *schema.ResourceData, meta interface{}) erro
<% unless version == 'ga' -%>
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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`).

<a id="timeouts"></a>
## Timeouts

Expand Down

0 comments on commit 5213212

Please sign in to comment.