package node
import "k8s.io/client-go/pkg/api/v1/node"
Index ¶
- func GetNodeCondition(status *v1.NodeStatus, conditionType v1.NodeConditionType) (int, *v1.NodeCondition)
- func IsNodeReady(node *v1.Node) bool
Functions ¶
func GetNodeCondition ¶
func GetNodeCondition(status *v1.NodeStatus, conditionType v1.NodeConditionType) (int, *v1.NodeCondition)
GetNodeCondition extracts the provided condition from the given status and returns that. Returns nil and -1 if the condition is not present, and the index of the located condition.
func IsNodeReady ¶
IsNodeReady returns true if a node is ready; false otherwise.
Source Files ¶
util.go
- Version
- v4.0.0+incompatible
- Published
- Jul 28, 2017
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 2 hours ago –
Tools for package owners.