Skip to content

Commit e6e249e

Browse files
committed
small changes
1 parent 6a0f292 commit e6e249e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/actions/check_node_status.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,12 @@ func (h *CheckNodeStatusHandler) checkNodeReadyWithInformer(ctx context.Context,
267267
log.WithError(err).Warn("failed to remove event handler")
268268
}
269269

270+
node, err := lister.Get(req.NodeName)
271+
if err != nil {
272+
log.WithError(err).Error("faield to get node, will skip patch")
273+
return nil
274+
}
275+
270276
bandwith, ok := node.Labels["scheduling.cast.ai/network-bandwidth"]
271277
if ok {
272278
patch, _ := json.Marshal(map[string]interface{}{

0 commit comments

Comments
 (0)