Skip to content

Commit

Permalink
feat(env-check): remove env check condition when host OS is unsupported
Browse files Browse the repository at this point in the history
longhorn/longhorn-10019

Signed-off-by: Raphanus Lo <[email protected]>
  • Loading branch information
COLDTURNIP committed Dec 25, 2024
1 parent 66a361b commit 8bc8d98
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions controller/monitor/environment_check_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 8bc8d98

Please sign in to comment.