From 7d563df8f73c5938a5b6c481121dd7196e46343e Mon Sep 17 00:00:00 2001 From: Ivan Kolodiazhnyi Date: Fri, 25 Oct 2024 10:29:17 +0300 Subject: [PATCH] Fix FimwareConfigMatchCondition if firmware doestn't match Signed-off-by: Ivan Kolodiazhnyi --- internal/controller/devicediscovery_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/devicediscovery_controller.go b/internal/controller/devicediscovery_controller.go index b206421..deeb951 100644 --- a/internal/controller/devicediscovery_controller.go +++ b/internal/controller/devicediscovery_controller.go @@ -87,7 +87,7 @@ func setFwConfigConditionsForDevice(device *v1alpha1.NicDevice, recommendedFirmw default: condition := metav1.Condition{ Type: consts.FimwareConfigMatchCondition, - Status: metav1.ConditionUnknown, + Status: metav1.ConditionFalse, Reason: consts.DeviceFwMismatchReason, Message: fmt.Sprintf("Device firmware '%s' doesn't match to recommended version '%s'", currentFirmware, recommendedFirmware), }