From 7c5827e086e69bbccf91bfb968e20766149f940b Mon Sep 17 00:00:00 2001 From: Artur Troian Date: Wed, 28 Feb 2024 13:51:11 -0500 Subject: [PATCH] fix(operator/inventory): signal node status after labels check Signed-off-by: Artur Troian --- operator/inventory/node-discovery.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/operator/inventory/node-discovery.go b/operator/inventory/node-discovery.go index 2afe825f..5b079cbb 100644 --- a/operator/inventory/node-discovery.go +++ b/operator/inventory/node-discovery.go @@ -511,20 +511,6 @@ func (dp *nodeDiscovery) monitor() error { if obj.Name == dp.name { switch evt.Type { case watch.Modified: - isReady := false - for _, condition := range obj.Status.Conditions { - if condition.Type == corev1.NodeReady { - isReady = true - break - } - } - - if obj.Spec.Unschedulable || !isReady { - currLabels = nil - } else { - currLabels = copyAkashLabels(obj.Labels) - } - signalLabels() } }