From e267bf489d6c004b37e851620f733da4a28b8b59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20GLON?= Date: Mon, 27 Nov 2017 21:40:07 +0100 Subject: [PATCH] [WIP] Add container cluster network policy addon (#630) * replalce TypeList by TypeSet * Add network policy * test improvement * correct test * Add cluster network polocy enabled * Replalce network_policy addons by global network_policy enabled * Update node_config.go * Update resource_container_cluster.go * clean * clean * Correct PR * COrrect PR * pr * fix test to use same name * add more documentation --- docs/r/container_cluster.html.markdown | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/r/container_cluster.html.markdown b/docs/r/container_cluster.html.markdown index 0ca6f91ca5d..417193227ad 100644 --- a/docs/r/container_cluster.html.markdown +++ b/docs/r/container_cluster.html.markdown @@ -126,6 +126,10 @@ output "cluster_ca_certificate" { * `network` - (Optional) The name or self_link of the Google Compute Engine network to which the cluster is connected. +* `network_policy` - (Optional) Configuration options for the + [NetworkPolicy](https://kubernetes.io/docs/concepts/services-networking/networkpolicies/) + feature. Structure is documented below. + * `node_config` - (Optional) Parameters used in creating the cluster's nodes. Structure is documented below. @@ -204,6 +208,12 @@ The `master_authorized_networks_config.cidr_blocks` block supports: * `display_name` - (Optional) Field for users to identify CIDR blocks. +The `network_policy` block supports: + +* `provider` - (Optional) The selected network policy provider. Defaults to PROVIDER_UNSPECIFIED. + +* `enabled` - (Optional) Whether network policy is enabled on the cluster. Defaults to false. + The `node_config` block supports: * `disk_size_gb` - (Optional) Size of the disk attached to each node, specified