Skip to content

Conversation

@sreeram-venkitesh
Copy link
Member

What type of PR is this?

/kind feature

What this PR does / why we need it:

Beta graduation for PodLifecycleSleepActionAllowZero feature gate

Which issue(s) this PR fixes:

Part of kubernetes/enhancements#4818

Special notes for your reviewer:

Does this PR introduce a user-facing change?

PodLifecycleSleepAction is now turned on by default allowing users to create containers with sleep lifecycle action with a duration of zero seconds

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

KEP: https://github.com/kubernetes/enhancements/issues/4818

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. 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 Mar 6, 2025
@sreeram-venkitesh
Copy link
Member Author

/sig node

@k8s-ci-robot k8s-ci-robot added sig/node Categorizes an issue or PR as relevant to SIG Node. and removed do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Mar 6, 2025
@sreeram-venkitesh
Copy link
Member Author

sreeram-venkitesh commented Mar 6, 2025

@ffromani Tagging you here since you reviewed the KEP. I believe this is the only code change required for this KEP for beta graduation. I'm thinking of adding more tests in this PR as well, if there is scope for more.

A bug related to the alpha code of this KEP was fixed in #129946, which has been backported to v1.32 also now.

@pacoxu
Copy link
Member

pacoxu commented Mar 7, 2025

UT may need an update. Others LGTM.

@sreeram-venkitesh sreeram-venkitesh force-pushed the 4818-sleep-action-zero-value-beta-graduation branch from f4d8485 to ed952fc Compare March 7, 2025 17:27
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 7, 2025
@HirazawaUi
Copy link
Contributor

/hold

Sorry for the hold. I just wanted to confirm: is this PR running correctly and passing the e2e tests for this feature? I’ve made this kind of mistake before, and it seems like you might have run into the same issue as I did. Once you confirm that this PR passes the e2e tests for this feature, feel free to cancel the hold.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 8, 2025
@sreeram-venkitesh
Copy link
Member Author

e2e tests seems to run properly when I run them locally with kubetest2. The error says timeout for scheduling pod. Trying rerunning the tests.

/retest

@HirazawaUi
Copy link
Contributor

e2e tests seems to run properly when I run them locally with kubetest2. The error says timeout for scheduling pod. Trying rerunning the tests.

Are these test cases being triggered in the CI environment? Could you check this?

@sreeram-venkitesh
Copy link
Member Author

@HirazawaUi Thank you for pointing out the failures! The e2e tests have passed once I rerun them. It had failed because Pod scheduling had timed out earlier for some reason 🤔

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 9, 2025
@sreeram-venkitesh
Copy link
Member Author

sreeram-venkitesh commented Mar 9, 2025

Are these test cases being triggered in the CI environment? Could you check this?

Ah sorry I didn't see your comment, looks like the test is being skipped. But I can also see that the tests for the parent KEP (PodLifecycleSleepAction, which is also in beta now) are also being skipped 🤔

@HirazawaUi
Copy link
Contributor

HirazawaUi commented Mar 9, 2025

Ah sorry I didn't see your comment, looks like the test is being skipped. But I can also see that the tests for the parent KEP (PodLifecycleSleepAction, which is also in beta now) are also being skipped 🤔

This is what I meant.

You need to submit a PR to https://github.com/kubernetes/test-infra to add a test job for PodLifecycleSleepActionAllowZero.


@pohly @kannon92 some feature gate owners might miss adding test jobs for their features in test-infra, unless the reviewer reminds them in the PR or the feature owner has already done some thorough exploration. I’ve seen a few cases like this, and I’ve made this mistake myself before. Are we lacking some documentation to guide people through this process?

@bart0sh bart0sh moved this from Triage to Waiting on Author in SIG Node: code and documentation PRs Mar 10, 2025
@bart0sh
Copy link
Contributor

bart0sh commented Mar 10, 2025

/triage accepted

@sreeram-venkitesh sreeram-venkitesh force-pushed the 4818-sleep-action-zero-value-beta-graduation branch from a723ce3 to 3043fbc Compare March 20, 2025 14:06
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 20, 2025
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 20, 2025
@ffromani
Copy link
Contributor

/lgtm

let's make it formal indeed

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

LGTM label has been added.

Git tree hash: d723d7c4395744ba0bc35d8be5a008fb7f2a9b87

@HirazawaUi
Copy link
Contributor

HirazawaUi commented Mar 20, 2025

/lgtm

let's make it formal indeed

Please wait, the latest update missed some content and still needs modifications to pkg/features/kube_features.go.

/hold

Since this PR has already been approved, prevent accidental merging before submitting the fix. If you have already submitted the fix, feel free to remove the hold.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 20, 2025
@ffromani
Copy link
Contributor

/lgtm
let's make it formal indeed

Please wait, the latest update missed some content and still needs modifications to pkg/features/kube_features.go.

/hold

Since this PR has already been approved, prevent accidental merging before submitting the fix. If you have already submitted the fix, feel free to remove the hold.

sorry, missed this update.

@thockin
Copy link
Member

thockin commented Mar 20, 2025

@sreeram-venkitesh the verify failure is around gates - it needs you to touch it to pass CI

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 20, 2025
@k8s-ci-robot k8s-ci-robot requested a review from ffromani March 20, 2025 15:42
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: SergeyKanzhelev, sreeram-venkitesh, thockin

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

@sreeram-venkitesh
Copy link
Member Author

Looking into the test failures..

@HirazawaUi
Copy link
Contributor

Looking into the test failures..

The failure of the pull-kubernetes-unit job is unrelated to the changes in this PR. It seems that a previous change has made this job unstable. After the other jobs succeeded, we can retest it.

@HirazawaUi
Copy link
Contributor

/test pull-kubernetes-unit

@HirazawaUi
Copy link
Contributor

/lgtm
/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 20, 2025
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 20, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 8a01bfea091c27cbb56b538a64a5dbd9825f5951

@k8s-ci-robot k8s-ci-robot merged commit 2546557 into kubernetes:master Mar 20, 2025
16 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.33 milestone Mar 20, 2025
@github-project-automation github-project-automation bot moved this from Waiting on Author to Done in SIG Node: code and documentation PRs Mar 20, 2025
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/node Categorizes an issue or PR as relevant to SIG Node. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Projects

Development

Successfully merging this pull request may close these issues.