Skip to content

Commit

Permalink
prevent the reconcile loop to accumulate states
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com>
  • Loading branch information
ArangoGutierrez committed Apr 9, 2021
1 parent 53e6fe7 commit 06266fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions controllers/nodefeaturediscovery_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ func (n *NFD) init(
n.rec = r
n.ins = i
n.idx = 0
n.addState("/opt/nfd/master")
n.addState("/opt/nfd/worker")
if len(n.controls) == 0 {
n.addState("/opt/nfd/master")
n.addState("/opt/nfd/worker")
}
}

func (n *NFD) step() error {
Expand Down

0 comments on commit 06266fa

Please sign in to comment.