mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-11 17:04:22 -05:00
16 lines
275 B
Go
16 lines
275 B
Go
|
package node
|
||
|
|
||
|
import corev1 "k8s.io/api/core/v1"
|
||
|
|
||
|
func Ready(node *corev1.Node) bool {
|
||
|
for _, cond := range node.Status.Conditions {
|
||
|
if cond.Type == corev1.NodeReady {
|
||
|
if cond.Status == corev1.ConditionTrue {
|
||
|
return true
|
||
|
}
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
return false
|
||
|
}
|