Skip to content

Conversation

@comtalyst
Copy link
Contributor

What type of PR is this?

/kind bug
/kind regression

What this PR does / why we need it:

Cherry-pick of #7579. Automated cherry-pick has failed due to cross-version code difference from a new feature.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Fix scaling of spot node pools

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. kind/regression Categorizes issue or PR as related to a regression from a prior release. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/provider/azure Issues or PRs related to azure provider labels Dec 8, 2024
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 8, 2024
@comtalyst
Copy link
Contributor Author

/cc @tallaxes

@tallaxes
Copy link
Contributor

tallaxes commented Dec 8, 2024

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 8, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: comtalyst, tallaxes

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit f160b1d into kubernetes:cluster-autoscaler-release-1.29 Dec 8, 2024
6 of 7 checks passed
aagusuab pushed a commit to Azure/autoscaler that referenced this pull request Oct 21, 2025
…the default refresh period for VMSS size (used for Spot instances)

**What type of PR is this?** (bug, cleanup, documentation, feature)
Bug

**What this PR does / why we need it?**:
Cherry-pick of kubernetes#7582

**Does this PR introduce a user-facing change?**

**WorkItem**
<!--- NOTE: REPLACE THIS LINE WITH THE WORKITEM SUFFIXED WITH "https://dev.azure.com/msazure/CloudNativeCompute".
Currently, this CAS repo is under  "https://dev.azure.com/AzureContainerUpstream", workItems are under "https://dev.azure.com/msazure/CloudNativeCompute" and ADO doesn't support cross-linking.---->

**Testing**
- [X] Unit tests
- [ ] E2E tests (we can custom branches on standalone env only)
- [ ] Other tests (eg. manual testing).

<details>
<summary>Cherry-pick details</summary>

**Is this a cherry-picked PR?**
- [X] Yes. Include original PR.
```
kubernetes#7582
```
- [ ] No. On which internal versions / branches is this PR getting cherry-picked ?
```
```

**Is this PR getting merged on [upstream](https://github.com/kubernetes/autoscaler) ?**
- [X] Yes. Which branches / versions including master?
```
All (already done)
```
- [ ] No. Why?
```
```
</details>

<br>

**Special notes for your reviewer**:

**Additional Documentation**:

----
#### AI description  (iteration 1)
#### PR Classification
Bug fix

#### PR Summary
This pull request fixes the default refresh period setting for VMSS size, which is used for Spot instances in the Azure cloud provider.
- `cluster-autoscaler/cloudprovider/azure/azure_manager_test.go`: Corrected the `getVmssSizeRefreshPeriod` to use the `refreshInterval` directly.
- `cluster-autoscaler/cloudprovider/azure/azure_scale_set.go`: Updated the `getVmssSizeRefreshPeriod` to use the `refreshInterval` directly instead of converting it to seconds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/provider/azure Issues or PRs related to azure provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. kind/regression Categorizes issue or PR as related to a regression from a prior release. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants