Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
a9584a27
Unverified
Commit
a9584a27
authored
Mar 29, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Mar 29, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #75754 from denkensk/cleanup-podtimestamp
clean up func podTimestamp in queue
parents
60638c71
8fd45d83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
scheduling_queue.go
pkg/scheduler/internal/queue/scheduling_queue.go
+0
-13
No files found.
pkg/scheduler/internal/queue/scheduling_queue.go
View file @
a9584a27
...
@@ -247,19 +247,6 @@ type PriorityQueue struct {
...
@@ -247,19 +247,6 @@ type PriorityQueue struct {
// Making sure that PriorityQueue implements SchedulingQueue.
// Making sure that PriorityQueue implements SchedulingQueue.
var
_
=
SchedulingQueue
(
&
PriorityQueue
{})
var
_
=
SchedulingQueue
(
&
PriorityQueue
{})
// podTimeStamp returns pod's last schedule time or its creation time if the
// scheduler has never tried scheduling it.
func
podTimestamp
(
pod
*
v1
.
Pod
)
*
metav1
.
Time
{
_
,
condition
:=
podutil
.
GetPodCondition
(
&
pod
.
Status
,
v1
.
PodScheduled
)
if
condition
==
nil
{
return
&
pod
.
CreationTimestamp
}
if
condition
.
LastProbeTime
.
IsZero
()
{
return
&
condition
.
LastTransitionTime
}
return
&
condition
.
LastProbeTime
}
// podInfo is minimum cell in the scheduling queue.
// podInfo is minimum cell in the scheduling queue.
type
podInfo
struct
{
type
podInfo
struct
{
pod
*
v1
.
Pod
pod
*
v1
.
Pod
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment