From d818f5c0f3fc1416836ef7d555eb91050e759dab Mon Sep 17 00:00:00 2001 From: Raphanus Lo Date: Wed, 25 Dec 2024 11:12:22 +0800 Subject: [PATCH] feat(env-check): remove env check condition when host OS is unsupported longhorn/longhorn-10019 Signed-off-by: Raphanus Lo (cherry picked from commit a27e0ba868880d8ebc3080e87a31b8d24e8cd07d) --- controller/monitor/environment_check_monitor.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/controller/monitor/environment_check_monitor.go b/controller/monitor/environment_check_monitor.go index b7e1ee2c8c..538d2dd32b 100644 --- a/controller/monitor/environment_check_monitor.go +++ b/controller/monitor/environment_check_monitor.go @@ -221,9 +221,7 @@ func (m *EnvironmentCheckMonitor) syncPackagesInstalled(kubeNode *corev1.Node, n packageProbeExecutables["sys-fs/cryptsetup"] = "cryptsetup" packageProbeExecutables["sys-fs/lvm2"] = "dmsetup" default: - collectedData.conditions = types.SetCondition(collectedData.conditions, longhorn.NodeConditionTypeRequiredPackages, longhorn.ConditionStatusFalse, - string(longhorn.NodeConditionReasonUnknownOS), - fmt.Sprintf("Unable to verify the required packages because the OS image '%v' is unknown to the Longhorn system. Please ensure the required packages are installed.", osImage)) + // unsupported host platform, skip environment check condition return }