Skip to content

Commit

Permalink
azurerm_kubernetes_cluster_node_pool - respect pod disruption budge…
Browse files Browse the repository at this point in the history
…t when delete the node pool (#26471)
  • Loading branch information
ms-henglu authored Jun 26, 2024
1 parent 2905fb0 commit e9d4380
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1122,10 +1122,7 @@ func resourceKubernetesClusterNodePoolDelete(d *pluginsdk.ResourceData, meta int
return err
}

ignorePodDisruptionBudget := true
err = client.DeleteThenPoll(ctx, *id, agentpools.DeleteOperationOptions{
IgnorePodDisruptionBudget: &ignorePodDisruptionBudget,
})
err = client.DeleteThenPoll(ctx, *id, agentpools.DefaultDeleteOperationOptions())
if err != nil {
return fmt.Errorf("deleting %s: %+v", *id, err)
}
Expand Down

0 comments on commit e9d4380

Please sign in to comment.