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
f99e9a50
Commit
f99e9a50
authored
Apr 20, 2017
by
Kubernetes Submit Queue
Committed by
GitHub
Apr 20, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #44720 from FengyunPan/use-const
Automatic merge from submit-queue Use const value for pod's conditions None
parents
2425f581
1bad02cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
pod_helper.go
.../pkg/federation-controller/util/podanalyzer/pod_helper.go
+1
-1
pod_helper_test.go
...federation-controller/util/podanalyzer/pod_helper_test.go
+1
-1
No files found.
federation/pkg/federation-controller/util/podanalyzer/pod_helper.go
View file @
f99e9a50
...
...
@@ -68,7 +68,7 @@ func AnalysePods(selectorv1 *metav1.LabelSelector, allPods []util.FederatedObjec
}
else
{
if
condition
.
Type
==
api_v1
.
PodScheduled
&&
condition
.
Status
==
api_v1
.
ConditionFalse
&&
condition
.
Reason
==
"Unschedulable"
&&
condition
.
Reason
==
api_v1
.
PodReasonUnschedulable
&&
condition
.
LastTransitionTime
.
Add
(
UnschedulableThreshold
)
.
Before
(
currentTime
)
{
status
.
Unschedulable
++
...
...
federation/pkg/federation-controller/util/podanalyzer/pod_helper_test.go
View file @
f99e9a50
...
...
@@ -49,7 +49,7 @@ func TestAnalyze(t *testing.T) {
{
Type
:
api_v1
.
PodScheduled
,
Status
:
api_v1
.
ConditionFalse
,
Reason
:
"Unschedulable"
,
Reason
:
api_v1
.
PodReasonUnschedulable
,
LastTransitionTime
:
metav1
.
Time
{
Time
:
now
.
Add
(
-
10
*
time
.
Minute
)},
},
},
...
...
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