From c4d07c987dd6efa536162e6f6fd84f31ffd92f5b Mon Sep 17 00:00:00 2001 From: Steph Date: Wed, 29 May 2024 10:51:41 +0200 Subject: [PATCH] link rest api specs issue for customizediff --- .../services/containers/kubernetes_cluster_node_pool_resource.go | 1 + internal/services/containers/kubernetes_cluster_resource.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/services/containers/kubernetes_cluster_node_pool_resource.go b/internal/services/containers/kubernetes_cluster_node_pool_resource.go index 39173e753de7..19af0b55d4fb 100644 --- a/internal/services/containers/kubernetes_cluster_node_pool_resource.go +++ b/internal/services/containers/kubernetes_cluster_node_pool_resource.go @@ -67,6 +67,7 @@ func resourceKubernetesClusterNodePool() *pluginsdk.Resource { Schema: resourceKubernetesClusterNodePoolSchema(), CustomizeDiff: pluginsdk.CustomDiffInSequence( + // The behaviour of the API requires this, but this could be removed when https://github.com/Azure/azure-rest-api-specs/issues/27373 has been addressed pluginsdk.ForceNewIfChange("upgrade_settings.0.drain_timeout_in_minutes", func(ctx context.Context, old, new, meta interface{}) bool { return old != 0 && new == 0 }), diff --git a/internal/services/containers/kubernetes_cluster_resource.go b/internal/services/containers/kubernetes_cluster_resource.go index e93deecacf1b..d23a22c35728 100644 --- a/internal/services/containers/kubernetes_cluster_resource.go +++ b/internal/services/containers/kubernetes_cluster_resource.go @@ -67,6 +67,7 @@ func resourceKubernetesCluster() *pluginsdk.Resource { ), CustomizeDiff: pluginsdk.CustomDiffInSequence( + // The behaviour of the API requires this, but this could be removed when https://github.com/Azure/azure-rest-api-specs/issues/27373 has been addressed pluginsdk.ForceNewIfChange("default_node_pool.0.upgrade_settings.0.drain_timeout_in_minutes", func(ctx context.Context, old, new, meta interface{}) bool { return old != 0 && new == 0 }),