mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
Add: specify that reason is a field to record the reason why failed
This commit is contained in:
parent
33aba7ee02
commit
6680368958
@ -131,8 +131,9 @@ func NewPodsToActivate() *PodsToActivate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Status indicates the result of running a plugin. It consists of a code, a
|
// 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
|
// message, (optionally) an error and an plugin name it fails by.
|
||||||
// code is not `Success`, the reasons should explain why.
|
// 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.
|
// NOTE: A nil Status is also considered as Success.
|
||||||
type Status struct {
|
type Status struct {
|
||||||
code Code
|
code Code
|
||||||
|
Loading…
Reference in New Issue
Block a user