Make master_auth user/pass optional

This commit is contained in:
Chris Stephens 2018-11-13 21:20:47 +00:00 committed by Nathan McKinley
parent 1f5b380cd6
commit 2c828110f0
2 changed files with 6 additions and 6 deletions

View File

@ -279,13 +279,13 @@ func resourceContainerCluster() *schema.Resource {
Schema: map[string]*schema.Schema{
"password": {
Type: schema.TypeString,
Required: true,
Optional: true,
Sensitive: true,
},
"username": {
Type: schema.TypeString,
Required: true,
Optional: true,
},
"client_certificate_config": {

View File

@ -270,11 +270,11 @@ The `ip_allocation_policy` block supports:
The `master_auth` block supports:
* `password` - (Required) The password to use for HTTP basic authentication when accessing
the Kubernetes master endpoint
* `password` - (Optional) The password to use for HTTP basic authentication when accessing
the Kubernetes master endpoint.
* `username` - (Required) The username to use for HTTP basic authentication when accessing
the Kubernetes master endpoint
* `username` - (Optional) The username to use for HTTP basic authentication when accessing
the Kubernetes master endpoint. If not present basic auth will be disabled.
* `client_certificate_config` - (Optional) Whether client certificate authorization is enabled for this cluster. For example: