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
e3b25ed4
Commit
e3b25ed4
authored
Feb 27, 2017
by
timchenxiaoyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typo:evaluator
parent
d7b3c62c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
persistent_volume_claims.go
pkg/quota/evaluator/core/persistent_volume_claims.go
+1
-1
pods.go
pkg/quota/evaluator/core/pods.go
+1
-1
services.go
pkg/quota/evaluator/core/services.go
+1
-1
No files found.
pkg/quota/evaluator/core/persistent_volume_claims.go
View file @
e3b25ed4
...
@@ -139,7 +139,7 @@ func (p *pvcEvaluator) GroupKind() schema.GroupKind {
...
@@ -139,7 +139,7 @@ func (p *pvcEvaluator) GroupKind() schema.GroupKind {
return
api
.
Kind
(
"PersistentVolumeClaim"
)
return
api
.
Kind
(
"PersistentVolumeClaim"
)
}
}
// Handles returns true if the evalutor should handle the specified operation.
// Handles returns true if the evalu
a
tor should handle the specified operation.
func
(
p
*
pvcEvaluator
)
Handles
(
operation
admission
.
Operation
)
bool
{
func
(
p
*
pvcEvaluator
)
Handles
(
operation
admission
.
Operation
)
bool
{
return
admission
.
Create
==
operation
return
admission
.
Create
==
operation
}
}
...
...
pkg/quota/evaluator/core/pods.go
View file @
e3b25ed4
...
@@ -130,7 +130,7 @@ func (p *podEvaluator) GroupKind() schema.GroupKind {
...
@@ -130,7 +130,7 @@ func (p *podEvaluator) GroupKind() schema.GroupKind {
return
api
.
Kind
(
"Pod"
)
return
api
.
Kind
(
"Pod"
)
}
}
// Handles returns true of the evalutor should handle the specified operation.
// Handles returns true of the evalu
a
tor should handle the specified operation.
func
(
p
*
podEvaluator
)
Handles
(
operation
admission
.
Operation
)
bool
{
func
(
p
*
podEvaluator
)
Handles
(
operation
admission
.
Operation
)
bool
{
// TODO: update this if/when pods support resizing resource requirements.
// TODO: update this if/when pods support resizing resource requirements.
return
admission
.
Create
==
operation
return
admission
.
Create
==
operation
...
...
pkg/quota/evaluator/core/services.go
View file @
e3b25ed4
...
@@ -92,7 +92,7 @@ func (p *serviceEvaluator) GroupKind() schema.GroupKind {
...
@@ -92,7 +92,7 @@ func (p *serviceEvaluator) GroupKind() schema.GroupKind {
return
api
.
Kind
(
"Service"
)
return
api
.
Kind
(
"Service"
)
}
}
// Handles returns true of the evalutor should handle the specified operation.
// Handles returns true of the evalu
a
tor should handle the specified operation.
func
(
p
*
serviceEvaluator
)
Handles
(
operation
admission
.
Operation
)
bool
{
func
(
p
*
serviceEvaluator
)
Handles
(
operation
admission
.
Operation
)
bool
{
// We handle create and update because a service type can change.
// We handle create and update because a service type can change.
return
admission
.
Create
==
operation
||
admission
.
Update
==
operation
return
admission
.
Create
==
operation
||
admission
.
Update
==
operation
...
...
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