Skip to content

Commit 42e5c8d

Browse files
committed
1
Signed-off-by: Manuel de Brito Fontes <[email protected]>
1 parent e7f3531 commit 42e5c8d

File tree

1 file changed

+0
-5
lines changed
  • components/node-labeler/cmd

1 file changed

+0
-5
lines changed

components/node-labeler/cmd/run.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,6 @@ func updateLabel(label string, add bool, nodeName string, client client.Client)
256256
return err
257257
}
258258

259-
_, hasLabel := node.Labels[label]
260-
if add == hasLabel {
261-
return nil
262-
}
263-
264259
if add {
265260
node.Labels[label] = "true"
266261
log.WithField("label", label).WithField("node", nodeName).Info("adding label to node")

0 commit comments

Comments
 (0)