kubernetes icon indicating copy to clipboard operation
kubernetes copied to clipboard

[FG:InPlacePodVerticalScaling] Show CPU request in status only when configured

Open hshiina opened this issue 1 year ago • 9 comments

What type of PR is this?

/kind bug

What this PR does / why we need it:

The minimum CPU request is set to a container internally if a CPU request is not configured. This minimum request does not need displaying to users. This PR sets a CPU request to a pod status only when a CPU request is configured in the pod spec.

This PR also prevents the internal minimum CPU request from triggering an unexpected resize in computePodResizeAction().

Which issue(s) this PR fixes:

Fixes #126195

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Fixed a bug that the internal minimum CPU request is displayed in a pod status when only a memory request is configured in the pod and the `InPlacePodVerticalScaling` feature is enabled.

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


hshiina avatar Jul 18 '24 12:07 hshiina

Hi @hshiina. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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-sigs/prow repository.

k8s-ci-robot avatar Jul 18 '24 12:07 k8s-ci-robot

/triage accepted /priority important-longterm /ok-to-test

bart0sh avatar Jul 25 '24 12:07 bart0sh

/test pull-kubernetes-node-kubelet-serial-podresize

hshiina avatar Jul 26 '24 18:07 hshiina

/retest

hshiina avatar Jul 26 '24 19:07 hshiina

It looks hitting a flake #126392.

hshiina avatar Jul 26 '24 20:07 hshiina

/test pull-kubernetes-node-kubelet-serial-podresize

hshiina avatar Aug 09 '24 14:08 hshiina

/retest

hshiina avatar Aug 10 '24 12:08 hshiina

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: hshiina Once this PR has been reviewed and has the lgtm label, please assign derekwaynecarr for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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 avatar Oct 20 '24 12:10 k8s-ci-robot

/test pull-kubernetes-e2e-inplace-pod-resize-containerd-main-v2 /test pull-kubernetes-node-kubelet-serial-podresize

hshiina avatar Oct 20 '24 12:10 hshiina

PR needs rebase.

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-sigs/prow repository.

k8s-ci-robot avatar Oct 26 '24 02:10 k8s-ci-robot

I think this PR is superseded by https://github.com/kubernetes/kubernetes/pull/128680

Please take a look at the linked PR.

/close

tallclair avatar Nov 07 '24 23:11 tallclair

@tallclair: Closed this PR.

In response to this:

I think this PR is superseded by https://github.com/kubernetes/kubernetes/pull/128680

Please take a look at the linked PR.

/close

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-sigs/prow repository.

k8s-ci-robot avatar Nov 07 '24 23:11 k8s-ci-robot