Skip to content

Commit

Permalink
notfound
Browse files Browse the repository at this point in the history
  • Loading branch information
njtran committed Sep 11, 2023
1 parent 90dbe73 commit 0b59e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/deprovisioning/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func (c *Controller) taintCandidates(ctx context.Context, addTaint bool, nodes .
var multiErr error
for _, n := range nodes {
node := &v1.Node{}
if err := c.kubeClient.Get(ctx, client.ObjectKey{Name: n.Name()}, node); err != nil {
if err := c.kubeClient.Get(ctx, client.ObjectKey{Name: n.Name()}, node); client.IgnoreNotFound(err) != nil {
multiErr = multierr.Append(multiErr, fmt.Errorf("getting node, %w", err))
}

Expand Down

0 comments on commit 0b59e3c

Please sign in to comment.