From 17b39e6621feb79580f19b586b5ff31f2f2274d9 Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Wed, 12 Feb 2020 22:39:27 +0000 Subject: [PATCH] Remove error status check in GKE cluster on read (#3115) Signed-off-by: Modular Magician --- .changelog/3115.txt | 3 +++ google/resource_container_cluster.go | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 .changelog/3115.txt diff --git a/.changelog/3115.txt b/.changelog/3115.txt new file mode 100644 index 00000000000..eab7a411b51 --- /dev/null +++ b/.changelog/3115.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +container: `google_container_cluster` will allow importing / updating / deleting clusters in error states +``` diff --git a/google/resource_container_cluster.go b/google/resource_container_cluster.go index 5f920163077..75075a61112 100644 --- a/google/resource_container_cluster.go +++ b/google/resource_container_cluster.go @@ -1021,9 +1021,6 @@ func resourceContainerClusterRead(d *schema.ResourceData, meta interface{}) erro if err != nil { return handleNotFoundError(err, d, fmt.Sprintf("Container Cluster %q", d.Get("name").(string))) } - if cluster.Status == "ERROR" || cluster.Status == "DEGRADED" { - return fmt.Errorf("Cluster %q has status %q with message %q", d.Get("name"), cluster.Status, cluster.StatusMessage) - } d.Set("name", cluster.Name) if err := d.Set("network_policy", flattenNetworkPolicy(cluster.NetworkPolicy)); err != nil {