Update wait function w/ descriptions of global node states, TODO for kubelet

API.
This commit is contained in:
jay vyas
2020-08-13 15:35:43 -04:00
parent eb8b5a9854
commit 04b38e9f91
2 changed files with 25 additions and 22 deletions

View File

@@ -166,6 +166,7 @@ func isConditionUnset(node *v1.Node, conditionType v1.NodeConditionType) bool {
return true
}
// isNodeConditionSetAsExpected checks a node for a condition, and returns 'true' if the wanted value is the same as the condition value, useful for polling until a condition on a node is met.
func isNodeConditionSetAsExpected(node *v1.Node, conditionType v1.NodeConditionType, wantTrue, silent bool) bool {
// Check the node readiness condition (logging all).
for _, cond := range node.Status.Conditions {