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
f796cc33
Commit
f796cc33
authored
Jun 07, 2016
by
derekwaynecarr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Align quota BestEffort scope with recent changes
parent
7476d977
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
pods.go
pkg/quota/evaluator/core/pods.go
+1
-10
No files found.
pkg/quota/evaluator/core/pods.go
View file @
f796cc33
...
...
@@ -172,16 +172,7 @@ func PodMatchesScopeFunc(scope api.ResourceQuotaScope, object runtime.Object) bo
}
func
isBestEffort
(
pod
*
api
.
Pod
)
bool
{
// TODO: when we have request/limits on a pod scope, we need to revisit this
for
_
,
container
:=
range
pod
.
Spec
.
Containers
{
qosPerResource
:=
util
.
GetQoS
(
&
container
)
for
_
,
qos
:=
range
qosPerResource
{
if
util
.
BestEffort
==
qos
{
return
true
}
}
}
return
false
return
util
.
GetPodQos
(
pod
)
==
util
.
BestEffort
}
func
isTerminating
(
pod
*
api
.
Pod
)
bool
{
...
...
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