Skip to content

Commit

Permalink
return error if node not present (#516)
Browse files Browse the repository at this point in the history
Signed-off-by: Akash Shrivastava <[email protected]>
  • Loading branch information
Akash Shrivastava authored May 11, 2022
1 parent 940c7ff commit ffc96c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/status/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ func CheckNodeStatus(nodes string, timeout, delay int, clients clients.ClientSet
node, err := clients.KubeClient.CoreV1().Nodes().Get(targetNodes[index], metav1.GetOptions{})
if err != nil {
if apierrors.IsNotFound(err) {
log.Infof("[Info]: The %v node is not exist", targetNodes[index])
continue
return errors.Errorf("[Info]: The node: %v does not exist", targetNodes[index])
} else {
return err
}
Expand Down

0 comments on commit ffc96c0

Please sign in to comment.