Report out of disk as a node condition when node goes out of disk.

Define a new out of disk node condition and use it to report when node
goes out of disk.

Make a copy of loop range clause variable in node listers so that it
is available outside the for loop.

Also update/implement unit tests.
This commit is contained in:
Madhusudan.C.S
2015-10-22 12:14:56 -07:00
parent 88548e227a
commit 9c4424f0bd
5 changed files with 178 additions and 24 deletions

View File

@@ -1491,6 +1491,9 @@ type NodeConditionType string
const (
// NodeReady means kubelet is healthy and ready to accept pods.
NodeReady NodeConditionType = "Ready"
// NodeOutOfDisk means the kubelet will not accept new pods due to insufficient free disk
// space on the node.
NodeOutOfDisk NodeConditionType = "OutOfDisk"
)
type NodeCondition struct {