Skip to content

Conversation

@vinaykul
Copy link
Member

@vinaykul vinaykul commented Feb 28, 2023

What type of PR is this?

/kind cleanup
/kind api-change

What this PR does / why we need it:

This PR restructures resize policy naming and sets default resize policy values.

  1. To better represent intent, ResourceResizePolicy type is renamed to ResourceResizeRestartPolicy and RestartRequired policy value is renamed to RestartContainer
  2. If not specified by the user, RestartNotRequired policy is defaulted for CPU and memory resources.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Please review specific commits, bulk of the changes are just generated files.
Resize policy name restructuring commit: 2d3569b
Set default resize policy commit: 4b5099e

Does this PR introduce a user-facing change?

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


@k8s-ci-robot k8s-ci-robot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Feb 28, 2023
@k8s-ci-robot k8s-ci-robot added area/code-generation area/kubelet area/test sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. sig/apps Categorizes an issue or PR as relevant to SIG Apps. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/testing Categorizes an issue or PR as relevant to SIG Testing. and removed do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Feb 28, 2023
@k8s-triage-robot
Copy link

This PR may require API review.

If so, when the changes are ready, complete the pre-review checklist and request an API review.

Status of requested reviews is tracked in the API Review project.

@vinaykul vinaykul marked this pull request as draft February 28, 2023 13:35
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 28, 2023
@vinaykul vinaykul marked this pull request as ready for review February 28, 2023 14:04
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 28, 2023
@cici37
Copy link
Contributor

cici37 commented Feb 28, 2023

/remove-sig api-machinery

@k8s-ci-robot k8s-ci-robot removed the sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. label Feb 28, 2023
@vinaykul vinaykul force-pushed the restart-free-pod-vertical-scaling-fixes branch from 3a68f30 to 338ebaf Compare March 1, 2023 14:08
@k8s-ci-robot k8s-ci-robot added the sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. label Mar 1, 2023
@vinaykul
Copy link
Member Author

vinaykul commented Mar 1, 2023

/assign @thockin @derekwaynecarr

@vinaykul vinaykul force-pushed the restart-free-pod-vertical-scaling-fixes branch from b38378d to 06e1692 Compare March 12, 2023 23:47
@vinaykul
Copy link
Member Author

vinaykul commented Mar 13, 2023

ping @thockin please review. Latest commit fixes RestartNotRequired -> NotRequired and sets ResizePolicy only for specified resources (which looks much cleaner)

@thockin
Copy link
Member

thockin commented Mar 14, 2023

Squash or leave it?

Copy link
Member

@thockin thockin left a comment

Choose a reason for hiding this comment

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

Thanks!

/lgtm
/approve

}
}
}
if utilfeature.DefaultFeatureGate.Enabled(features.InPlacePodVerticalScaling) &&
Copy link
Member

Choose a reason for hiding this comment

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

Follow up with a test? :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, a more comprehensive test is warranted, sorry for the miss. I'll bring it with GetPodQoS -> PodQOSClass change.
Having a stiff drink rn :)

Copy link
Member Author

Choose a reason for hiding this comment

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

@thockin Please review PR #116684 that adds missing unit test for defaulting

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

LGTM label has been added.

Git tree hash: 53d283b5a6e0b57fdbc02c0ba4e16895a201f18e

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: thockin, vinaykul

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

The pull request process is described here

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 14, 2023
@cici37 cici37 added this to the v1.27 milestone Mar 15, 2023
@pacoxu
Copy link
Member

pacoxu commented Mar 15, 2023

/release-note-edit

vpa: ResourceResizePolicy type is renamed to ResourceResizeRestartPolicy and RestartRequired policy value is renamed to RestartContainer. If not specified by the user, RestartNotRequired policy defaults for CPU and memory resources.

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Mar 15, 2023
@k8s-ci-robot k8s-ci-robot merged commit 9053b5d into kubernetes:master Mar 15, 2023
@SergeyKanzhelev
Copy link
Member

/release-note-edit

vpa: ResourceResizePolicy type is renamed to ResourceResizeRestartPolicy and RestartRequired policy value is renamed to RestartContainer. If not specified by the user, RestartNotRequired policy defaults for CPU and memory resources.

In terms of release notes, these fields are new in 1.27 and we probably should not call out renaming explicitly - if added to release notes as-is it will be confusing

@pacoxu
Copy link
Member

pacoxu commented Mar 15, 2023

/release-note-none

@k8s-ci-robot
Copy link
Contributor

@pacoxu: you can only set the release note label to release-note-none if the release-note block in the PR body text is empty or "none".

In response to this:

/release-note-none

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@pacoxu
Copy link
Member

pacoxu commented Mar 15, 2023

@pacoxu: you can only set the release note label to release-note-none if the release-note block in the PR body text is empty or "none".

@vinaykul would you help to remove the release-note in pr descriptions? 😓 sorry for applying an improper release note here.

@vinaykul
Copy link
Member Author

@pacoxu I don't see it in the CHANGELOG. Isn't that where the release notes go? I can attach the fix to the missing unit test PR.

@pacoxu
Copy link
Member

pacoxu commented Mar 17, 2023

image

@pacoxu
Copy link
Member

pacoxu commented Mar 17, 2023

I am afraid that it has already been collected to the Changelog:

- Vpa: ResourceResizePolicy type is renamed to ResourceResizeRestartPolicy and RestartRequired policy value is renamed to RestartContainer. If not specified by the user, RestartNotRequired policy defaults for CPU and memory resources. ([#116119](https://github.com/kubernetes/kubernetes/pull/116119), [@vinaykul](https://github.com/vinaykul)) [SIG API Machinery, Apps, Node and Testing]

@vinaykul
Copy link
Member Author

/release-note-none

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. and removed release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Mar 17, 2023
@vinaykul
Copy link
Member Author

I am afraid that it has already been collected to the Changelog:

- Vpa: ResourceResizePolicy type is renamed to ResourceResizeRestartPolicy and RestartRequired policy value is renamed to RestartContainer. If not specified by the user, RestartNotRequired policy defaults for CPU and memory resources. ([#116119](https://github.com/kubernetes/kubernetes/pull/116119), [@vinaykul](https://github.com/vinaykul)) [SIG API Machinery, Apps, Node and Testing]

Ah.. I'll piggy back a CHANGELOG update with unit test addition PR

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/code-generation area/kubelet area/test cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. release-note-none Denotes a PR that doesn't merit a release note. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. sig/apps Categorizes an issue or PR as relevant to SIG Apps. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Projects

Archived in project
Archived in project

Development

Successfully merging this pull request may close these issues.