From 8fe82ee83b3f0da1ecde0627fe57261841192a9e Mon Sep 17 00:00:00 2001 From: cyclinder Date: Fri, 29 Mar 2024 14:40:57 +0800 Subject: [PATCH] Restart the node if NodeNetworkCondition cannot be set Signed-off-by: cyclinder --- node/pkg/lifecycle/startup/startup.go | 1 + 1 file changed, 1 insertion(+) diff --git a/node/pkg/lifecycle/startup/startup.go b/node/pkg/lifecycle/startup/startup.go index 38aeb332d42..7b69f603987 100644 --- a/node/pkg/lifecycle/startup/startup.go +++ b/node/pkg/lifecycle/startup/startup.go @@ -227,6 +227,7 @@ func Run() { err := utils.SetNodeNetworkUnavailableCondition(*clientset, k8sNodeName, false, 30*time.Second) if err != nil { log.WithError(err).Error("Unable to set NetworkUnavailable to False") + utils.Terminate() } } }