Skip to content

Conversation

@AxeZhan
Copy link
Member

@AxeZhan AxeZhan commented Jun 28, 2025

What type of PR is this?

/kind feature

What this PR does / why we need it:

Graduate PodLifecycleSleepAction to GA

Which issue(s) this PR is related to:

Special notes for your reviewer:

Does this PR introduce a user-facing change?

PodLifecycleSleepAction is graduated to GA

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

- [KEP]: https://github.com/kubernetes/enhancements/issues/3960

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. kind/feature Categorizes issue or PR as related to a new feature. 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. labels Jun 28, 2025
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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 k8s-ci-robot added needs-priority Indicates a PR lacks a `priority/foo` label and requires one. area/kubelet area/test 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 Jun 28, 2025
@AxeZhan
Copy link
Member Author

AxeZhan commented Jun 28, 2025

/cc @thockin @aojea

@k8s-ci-robot k8s-ci-robot requested review from aojea and thockin June 28, 2025 15:04
@aojea
Copy link
Member

aojea commented Jun 29, 2025

we have the tests running without issues, have you verified?

@AxeZhan
Copy link
Member Author

AxeZhan commented Jun 30, 2025

we have the tests running without issues, have you verified?

The aggregated results shows no error in recent 15 days:
https://storage.googleapis.com/k8s-triage/index.html?text=unexpected%20delay%20duration%20before%20killing%20the%20pod

@pacoxu
Copy link
Member

pacoxu commented Jul 1, 2025

/lgtm

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

LGTM label has been added.

Git tree hash: 4d665364032cff9c261847cf07c6464575dfa395

@aojea
Copy link
Member

aojea commented Jul 1, 2025

I do not see those tests running on the testgrid , I'm looking for "Lifecycle Sleep Hook"

@sreeram-venkitesh
Copy link
Member

I've merged my changes for KEP 4818. I guess I should've used the squash and merge option? I can clean up the merge commit too. @AxeZhan what do you think?

@AxeZhan
Copy link
Member Author

AxeZhan commented Jul 17, 2025

I've merged my changes for KEP 4818. I guess I should've used the squash and merge option? I can clean up the merge commit too. @AxeZhan what do you think?

I think you can still squash on this branch? You should have the permissions. @sreeram-venkitesh

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/contains-merge-commits Indicates a PR which contains merge commits. label Jul 17, 2025
@sreeram-venkitesh
Copy link
Member

I've cleaned the merge commit and squashed my changes into a single commit.

CC: @thockin

Copy link
Member

@SergeyKanzhelev SergeyKanzhelev left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

as a follow up these tests may be moved to Conformance

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

LGTM label has been added.

Git tree hash: b3117746f56b7bade63755915b2b17753318890e

invalidStr := fmt.Sprintf("must be non-negative and less than terminationGracePeriodSeconds (%d)", *gracePeriod)
allErrors = append(allErrors, field.Invalid(fldPath, sleep.Seconds, invalidStr))
}
} else {
Copy link
Member

Choose a reason for hiding this comment

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

We need to leave the gated logic in until we remove the gate - compatVersions mean someone can configure this to behave as 1.33 or 1.32, where the gate can be disabled. It seems minor for this particular KEP, but its a principle thing.

But also, if you WERE killing this logic, shouldn't you ALSO remove the definiton of opts.AllowPodLifecycleSleepActionZeroValue (pkg/api/pod/util.go)?

Copy link
Member

Choose a reason for hiding this comment

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

Hmm yes, I didn't think about the emulated versions.

But also, if you WERE killing this logic, shouldn't you ALSO remove the definiton of opts.AllowPodLifecycleSleepActionZeroValue (pkg/api/pod/util.go)?

Yep, I'll add the gated logic back in validation and remove everything together when the gate is removed.

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. lgtm "Looks good to me", indicates that a PR is ready to be merged. labels Jul 18, 2025
@SergeyKanzhelev
Copy link
Member

/gtm

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

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

LGTM label has been added.

Git tree hash: 20b3ffa0eea248b88a2d5158dc738125678eabfd

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aojea, AxeZhan, SergeyKanzhelev, 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

@thockin thockin removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 19, 2025
@k8s-ci-robot k8s-ci-robot merged commit ade9b77 into kubernetes:master Jul 19, 2025
16 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.34 milestone Jul 19, 2025
@github-project-automation github-project-automation bot moved this from Archive-it to Done in SIG Node CI/Test Board Jul 19, 2025
@github-project-automation github-project-automation bot moved this from Needs Triage to Done in SIG Apps Jul 19, 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. area/kubelet area/test 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. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. release-note Denotes a PR that will be considered when it comes time to generate release notes. 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/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

Archived in project
Archived in project

Development

Successfully merging this pull request may close these issues.

8 participants