Unverified Commit f780ac02 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #78292 from JieJhih/scheduling/code

use iota instead assign value to constants
parents da31c50d 823111c0
......@@ -34,14 +34,14 @@ type Code int
const (
// Success means that plugin ran correctly and found pod schedulable.
// 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 Code = 1
Error
// Unschedulable is used when a plugin finds a pod 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 Code = 3
Wait
)
// Status indicates the result of running a plugin. It consists of a code and a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment