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
Fix pod's deadline to nil when cache ttl is set to zero #110954
Fix pod's deadline to nil when cache ttl is set to zero #110954
Conversation
@kerthcet: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
Is this a bug or a cleanup? If it's a cleanup, maybe not worth merging, since we plan to remove the code anyways /shrug |
Honestly I would like to treat it as a bug for we have data error internal, but it has no side effect up to now.
As discussed before, we still have two more releases before we finally remove them, and this discussion is still pending, I think we should fix it. |
That's a cleanup then. It has no real effect and all the information is in-memory (not in etcd). /type cleanup |
pkg/scheduler/scheduler.go
Outdated
@@ -53,7 +53,7 @@ import ( | |||
const ( | |||
// Duration the scheduler will wait before expiring an assumed pod. | |||
// See issue #106361 for more details about this parameter and its value. | |||
durationToExpireAssumedPod = 0 * time.Minute | |||
durationToExpireAssumedPod = 0 * time.Second |
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.
I think you could leave this like so:
durationToExpireAssumedPod = 0 * time.Second | |
durationToExpireAssumedPod = 0 |
or
durationToExpireAssumedPod = 0 * time.Second | |
durationToExpireAssumedPod time.Duration = 0 |
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.
Picked the second one.
Please squash /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, kerthcet 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 |
Signed-off-by: kerthcet <kerthcet@gmail.com>
squashed. |
308322e
to
72e8fc1
Compare
/lgtm |
@kerthcet: you cannot LGTM your own PR. In response to this:
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. |
Plz add lgtm again @alculquicondor the CI didn't work last time. Thanks. |
/lgtm |
flaky test: #110962 /retest |
/remove-kind bug |
Signed-off-by: kerthcet kerthcet@gmail.com
What type of PR is this?
/kind bug
/sig scheduling
What this PR does / why we need it:
Pod's deadline in podState should be nil when we set the cache ttl to zero.
Which issue(s) this PR fixes:
Part of #106361
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: