Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_kubernetes_cluster/azurerm_kubernetes_cluster_node_pool - add drain_timeout_in_minutes and node_soak_duration_in_minutes #26137

Merged
merged 40 commits into from
May 30, 2024

Conversation

stephybun
Copy link
Member

@stephybun stephybun commented May 29, 2024

Community Note

  • Please vote on this PR by adding a 👍 reaction to the original PR to help the community and maintainers prioritize for review
  • Please do not leave "+1" or "me too" comments, they generate extra noise for PR followers and do not help prioritize for review

Description

Supersedes #26022

Noticed some peculiar behaviour while fixing up #26022 which required the addition of a CustomizeDiff for drain_timeout_in_minutes, this issue was raised on the Swagger spec by @aristosvo for it. This property cannot be unset once configured and while the docs specify a default value of 30 minutes when omitted, this isn't returned by the API.

Testing

Tests look good, failures are unrelated.
image

Change Log

Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.

  • Data Source: azurerm_kubernetes_cluster - add support for the drain_timeout_in_minutes and node_soak_duration_in_minutes properties in the upgrade_settings block [GH-00000]
  • azurerm_kubernetes_cluster - add support for the drain_timeout_in_minutes and node_soak_duration_in_minutes properties in the upgrade_settings block [GH-00000]
  • azurerm_kubernetes_cluster_node_pool - add support for the drain_timeout_in_minutes and node_soak_duration_in_minutes properties in the upgrade_settings block [GH-00000]

This is a (please select all that apply):

  • Bug Fix
  • New Feature (ie adding a service, resource, or data source)
  • Enhancement
  • Breaking Change

Related Issue(s)

Fixes #13066

Note

If this PR changes meaningfully during the course of review please update the title and description as required.

aristosvo and others added 30 commits May 29, 2024 10:08
Co-authored-by: Itay Grudev <[email protected]>
@aristosvo
Copy link
Collaborator

@stephybun FYI I raised Azure/azure-rest-api-specs#27373 for an earlier version of this PR

@stephybun
Copy link
Member Author

Thanks for the reminder @aristosvo! The CustomizeDiff should work around that to a degree, but I'll link that issue you raised to it, since we should be able to remove it when it's fixed in the API.

Copy link
Member

@mbfrahry mbfrahry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just a minor note to add a todo to update the docs for 4.0

"drain_timeout_in_minutes": {
Type: pluginsdk.TypeInt,
Optional: true,
Default: 30,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add a TODO to add this default to the docs for 4.0?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am going to remove this since I found this did not work as expected when I did some 4.0 testing. I will open a follow up PR next week that will involve some 4.0 fixes for AKS, including a behavioural change to the upgrade_settings block

@stephybun stephybun merged commit d8cc46d into main May 30, 2024
32 checks passed
@stephybun stephybun deleted the f/add-new-upgrade-settings branch May 30, 2024 06:11
@github-actions github-actions bot added this to the v3.106.0 milestone May 30, 2024
stephybun added a commit that referenced this pull request May 30, 2024
zioproto added a commit to zioproto/terraform-azurerm-aks that referenced this pull request Jun 11, 2024
zioproto added a commit to zioproto/terraform-azurerm-aks that referenced this pull request Jun 11, 2024
zioproto added a commit to zioproto/terraform-azurerm-aks that referenced this pull request Jun 26, 2024
lonegunmanb pushed a commit to Azure/terraform-azurerm-aks that referenced this pull request Jun 28, 2024
Copy link

github-actions bot commented Jul 1, 2024

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for AKS node pool cordonDrainTimeoutInMinutes parameter
5 participants