-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Add Probe-level terminationGracePeriodSeconds #99375
Conversation
Taking off WIP since there is probably enough here for an initial review/feedback. I'm working on the e2es but should have that shortly. |
Since this is an alpha feature, it's unclear to me if the e2es should land in this PR -- I think for that to work I'd need to add the feature gate (which won't exist until this lands) to the test-infra jobs like kubernetes/test-infra#20369 ? Should I do that after this lands or simultaneously? @dims? |
@ehashman we would land the e2e test and feature here. and follow up with a PR to test-infra to switch it on. (then iterate if something fails). |
@dims (just thinking out loud) it won't be able to actually exercise any of the new logic with the alpha flag turned on until I add it to test-infra, and I'm not sure if I can add the flag to test-infra if it's not yet defined, am I missing something? |
/label api-review |
@ehashman we would fake test it with an extra commit that turns it on ... run it a few times and remove the extra commit before getting reviews and merging the PR |
/approve for api changes. I'm ok with an exception request since we have had this mostly baked for a while and the API issues were minor. I assume sig-node is ok too. Risk seems minimal. |
/milestone v1.21 Restoring the milestone since the exception request was APPROVED. ref: https://groups.google.com/g/kubernetes-sig-release/c/eOphdiRmK7k/m/4cSfBcneAgAJ |
/lgtm |
/retest |
@ehashman: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
57ff9f5
to
7df1259
Compare
I think the verify fail was a rebase/merge conflict issue, hopefully the update will pass. Passes locally. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dchen1107, derekwaynecarr, ehashman, matthyx, smarterclayton 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 |
/lgtm |
Hi. I know this is old, so I am not sure we want to do anything about this comment, but I wanted to ask: I'm investigating places where we share API structs across use-cases but some fields don't apply. We have a few cases in Probe, and I stumbled on this one (which is new to me). I skimmed the KEP but I didn't see this aspect really discussed. Was it considered? For example, maybe we should have un-shared the struct? Or maybe this should have been |
What type of PR is this?
/kind bug
/kind api-change
/sig node
/priority important-soon
What this PR does / why we need it:
Adds a Probe-level terminationGracePeriodSeconds.
Which issue(s) this PR fixes:
Fixes #64715.
See kubernetes/enhancements#2238 and linked KEP below for details.
Special notes for your reviewer:
Manually tested code changes with
./hack/local-up-cluster.sh
using no feature gates/FEATURE_GATES="ProbeTerminationGracePeriod=true".Test pod spec:
With feature gate on, terminationGracePeriod is successfully overridden:
Without it, behaviour is same as status quo:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: