Skip to content

Commit 9f73994

Browse files
committed
add todo
1 parent 0aa4589 commit 9f73994

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/controllers/machine/machine_controller.go

+2
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,8 @@ func (w *attachedVolumeHelper) ignore(pv *corev1.PersistentVolume) {
11181118
func getPersistentVolumeClaimsFromIgnoredPods(ctx context.Context, remoteClient client.Client, nodeName string) (sets.Set[string], error) {
11191119
drainHelper := drain.Helper{
11201120
Client: remoteClient,
1121+
// TODO(chrischdi) we might have to set this to not ignore volumes for pods pending deletion
1122+
SkipWaitForDeleteTimeoutSeconds: 99999999,
11211123
}
11221124

11231125
pods, err := drainHelper.GetPodsForEviction(ctx, nodeName)

0 commit comments

Comments
 (0)