- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for GetNodeCondition (0.14 sec)
-
pkg/controller/util/node/controller_utils.go
utilruntime.HandleError(fmt.Errorf("Error while processing Node Add/Delete: %v", err)) } } } // 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 GetNodeCondition(status *v1.NodeStatus, conditionType v1.NodeConditionType) (int, *v1.NodeCondition) { if status == nil { return -1, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 05 23:39:52 UTC 2023 - 10.6K bytes - Viewed (0) -
pkg/controller/nodelifecycle/node_lifecycle_controller.go
logger.Info("Failed to get Node from the nodeLister", "node", klog.KRef("", value.Value), "err", err) // retry in 50 millisecond return false, 50 * time.Millisecond } _, condition := controllerutil.GetNodeCondition(&node.Status, v1.NodeReady) if condition == nil { logger.Info("Failed to get NodeCondition from the node status", "node", klog.KRef("", value.Value)) // retry in 50 millisecond
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 51.6K bytes - Viewed (0) -
pkg/kubelet/kubelet_node_status.go
return true } originalNode, err := kl.GetNode() if err != nil { klog.ErrorS(err, "Error getting the current node from lister") return false } readyIdx, originalNodeReady := nodeutil.GetNodeCondition(&originalNode.Status, v1.NodeReady) if readyIdx == -1 { klog.ErrorS(nil, "Node does not have NodeReady condition", "originalNode", originalNode) return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 31.1K bytes - Viewed (0) -
pkg/controller/nodelifecycle/node_lifecycle_controller_test.go
}) _, _, currentReadyCondition, err := nodeController.tryUpdateNodeHealth(ctx, test.node) if err != nil { t.Fatalf("unexpected error: %v", err) } _, savedReadyCondition := controllerutil.GetNodeCondition(nodeController.nodeHealthMap.getDeepCopy(test.node.Name).status, v1.NodeReady) savedStatus := getStatus(savedReadyCondition) currentStatus := getStatus(currentReadyCondition)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 03:26:45 UTC 2024 - 119K bytes - Viewed (0)