From 6680368958522fa7c495107ec1e8d310dc09f854 Mon Sep 17 00:00:00 2001 From: sanposhiho <44139130+sanposhiho@users.noreply.github.com> Date: Sun, 18 Jul 2021 22:44:19 +0900 Subject: [PATCH] Add: specify that reason is a field to record the reason why failed --- pkg/scheduler/framework/interface.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/scheduler/framework/interface.go b/pkg/scheduler/framework/interface.go index f5dd413c3ca..d4f0111a820 100644 --- a/pkg/scheduler/framework/interface.go +++ b/pkg/scheduler/framework/interface.go @@ -131,8 +131,9 @@ func NewPodsToActivate() *PodsToActivate { } // Status indicates the result of running a plugin. It consists of a code, a -// message, (optionally) an error and an plugin name it fails by. When the status -// code is not `Success`, the reasons should explain why. +// message, (optionally) an error and an plugin name it fails by. +// When the status code is not Success, the reasons should explain why. +// And, when code is Success, all the other fields should be empty. // NOTE: A nil Status is also considered as Success. type Status struct { code Code