Skip to content

Commit

Permalink
link rest api specs issue for customizediff
Browse files Browse the repository at this point in the history
  • Loading branch information
stephybun committed May 29, 2024
1 parent b08ce1f commit c4d07c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}),
Expand Down

0 comments on commit c4d07c9

Please sign in to comment.