From 2ed39da4c92c0a84bdfb0e16a4e7862390cfb956 Mon Sep 17 00:00:00 2001 From: megan07 Date: Wed, 9 Oct 2019 19:52:35 +0000 Subject: [PATCH] deprecate kubernetes_dashboard for 2.X Signed-off-by: Modular Magician --- google/resource_container_cluster.go | 9 +++++---- website/docs/r/container_cluster.html.markdown | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/google/resource_container_cluster.go b/google/resource_container_cluster.go index ba4c5924519..b47c96452ea 100644 --- a/google/resource_container_cluster.go +++ b/google/resource_container_cluster.go @@ -179,10 +179,11 @@ func resourceContainerCluster() *schema.Resource { }, }, "kubernetes_dashboard": { - Type: schema.TypeList, - Optional: true, - Computed: true, - MaxItems: 1, + Type: schema.TypeList, + Optional: true, + Computed: true, + Deprecated: "The Kubernetes Dashboard addon is deprecated for clusters on GKE.", + MaxItems: 1, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "disabled": { diff --git a/website/docs/r/container_cluster.html.markdown b/website/docs/r/container_cluster.html.markdown index 57c49b585a4..a42e2a6c4d1 100644 --- a/website/docs/r/container_cluster.html.markdown +++ b/website/docs/r/container_cluster.html.markdown @@ -327,7 +327,7 @@ The `addons_config` block supports: controller addon, which makes it easy to set up HTTP load balancers for services in a cluster. It is enabled by default; set `disabled = true` to disable. -* `kubernetes_dashboard` - (Optional) The status of the Kubernetes Dashboard +* `kubernetes_dashboard` - (Optional, Deprecated) The status of the Kubernetes Dashboard add-on, which controls whether the Kubernetes Dashboard is enabled for this cluster. It is disabled by default; set `disabled = false` to enable.