-
Notifications
You must be signed in to change notification settings - Fork 41.6k
KEP-4818: Relaxed validation for allowing zero in PreStop hook sleep action #127094
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KEP-4818: Relaxed validation for allowing zero in PreStop hook sleep action #127094
Conversation
|
Skipping CI for Draft Pull Request. |
|
/sig node |
|
@kannon92 Addressing your comment, I've updated the logic to use the feature gate set in |
f633138 to
4508a72
Compare
|
I'm working on fixing the tests. |
|
/hold Please open a KEP first. You can leave this up but don't expect much reviews until the KEP is approved. |
8ccfa46 to
f568239
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
LGTM label has been added. Git tree hash: f96f63dd1bbe1afc491a7c636f4c4a5bd3f01037
|
|
/assign @thockin |
Added tests, info about new feature gate in error message, fixes from review Added basic e2e test Added unit tests Ran hack/update-featuregates.sh Tolerate updates to existing resources after disabling feature gate Added feature gate to versioned_kube_features.go Fixed existing tests Use PodValidationOptions for validation instead of using feature gate directly Relaxed validation for allowing zero in prestop hook sleep action
f568239 to
f1f9e7b
Compare
|
/retest |
|
/approve |
|
[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 |
|
Thanks Tim! @SergeyKanzhelev lgtm was removed after rebase |
|
/lgtm |
|
LGTM label has been added. Git tree hash: 2aa2a1233e48f77f728146fa4ee4005f0f806d9d
|
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR adds a feature gate,
PodLifecycleSleepActionAllowZero, to allow zero value for the sleep action in the PreStop container lifecycle hook.Which issue(s) this PR fixes:
Part of kubernetes/enhancements#4818
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: