Skip to content

Commit

Permalink
fix(operator/inventory): signal node status after labels check (#206)
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian authored Feb 28, 2024
1 parent 65a1de7 commit 1e36640
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions operator/inventory/node-discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down

0 comments on commit 1e36640

Please sign in to comment.