From a8e677937186bc6080a3803370affd0d4e16b16c Mon Sep 17 00:00:00 2001 From: The Magician Date: Wed, 26 Oct 2022 14:40:37 -0700 Subject: [PATCH] make datapath_provider ForceNew (#6657) (#12887) Co-authored-by: Edward Sun Signed-off-by: Modular Magician Signed-off-by: Modular Magician Co-authored-by: Edward Sun --- .changelog/6657.txt | 3 +++ google/resource_container_cluster.go | 1 + 2 files changed, 4 insertions(+) create mode 100644 .changelog/6657.txt diff --git a/.changelog/6657.txt b/.changelog/6657.txt new file mode 100644 index 0000000000..f3961cd95a --- /dev/null +++ b/.changelog/6657.txt @@ -0,0 +1,3 @@ +```release-note:bug +container: fixed unable to update `datapath_provider` on `google_container_cluster` so that modifying the `datapath_provider` field will recreating the resource now +``` diff --git a/google/resource_container_cluster.go b/google/resource_container_cluster.go index f563f3c660..03cd6785e8 100644 --- a/google/resource_container_cluster.go +++ b/google/resource_container_cluster.go @@ -1206,6 +1206,7 @@ func resourceContainerCluster() *schema.Resource { "datapath_provider": { Type: schema.TypeString, Optional: true, + ForceNew: true, Computed: true, Description: `The desired datapath provider for this cluster. By default, uses the IPTables-based kube-proxy implementation.`, ValidateFunc: validation.StringInSlice([]string{"DATAPATH_PROVIDER_UNSPECIFIED", "LEGACY_DATAPATH", "ADVANCED_DATAPATH"}, false),