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
f780ac02
Unverified
Commit
f780ac02
authored
May 27, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
May 27, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #78292 from JieJhih/scheduling/code
use iota instead assign value to constants
parents
da31c50d
823111c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
interface.go
pkg/scheduler/framework/v1alpha1/interface.go
+4
-4
No files found.
pkg/scheduler/framework/v1alpha1/interface.go
View file @
f780ac02
...
@@ -34,14 +34,14 @@ type Code int
...
@@ -34,14 +34,14 @@ type Code int
const
(
const
(
// Success means that plugin ran correctly and found pod schedulable.
// Success means that plugin ran correctly and found pod schedulable.
// NOTE: A nil status is also considered as "Success".
// NOTE: A nil status is also considered as "Success".
Success
Code
=
0
Success
Code
=
iota
// Error is used for internal plugin errors, unexpected input, etc.
// Error is used for internal plugin errors, unexpected input, etc.
Error
Code
=
1
Error
// Unschedulable is used when a plugin finds a pod unschedulable.
// Unschedulable is used when a plugin finds a pod unschedulable.
// The accompanying status message should explain why the pod is unschedulable.
// The accompanying status message should explain why the pod is unschedulable.
Unschedulable
Code
=
2
Unschedulable
// Wait is used when a permit plugin finds a pod scheduling should wait.
// Wait is used when a permit plugin finds a pod scheduling should wait.
Wait
Code
=
3
Wait
)
)
// Status indicates the result of running a plugin. It consists of a code and a
// Status indicates the result of running a plugin. It consists of a code and a
...
...
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