Skip to content

Commit 72c65ce

Browse files
committed
update
1 parent 41f06aa commit 72c65ce

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

internal/actions/drain_node_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ func (h *DrainNodeHandler) listNodePodsToEvict(ctx context.Context, log logrus.F
341341
}
342342

343343
// skip pods created on the node with the same name.
344-
if !isDaemonSetPod(&p) && !isStaticPod(&p) && p.CreationTimestamp.Before(node.GetDeletionTimestamp()) {
344+
if !isDaemonSetPod(&p) && !isStaticPod(&p) {
345345
podsToEvict = append(podsToEvict, p)
346346
}
347347
}

internal/actions/drain_node_handler_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ func TestDrainNodeHandler(t *testing.T) {
403403
ID: uuid.New().String(),
404404
ActionDrainNode: &castai.ActionDrainNode{
405405
NodeName: "node1",
406+
NodeID: nodeID,
406407
DrainTimeoutSeconds: 2,
407408
Force: false,
408409
},

0 commit comments

Comments
 (0)