Skip to content

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Oct 4, 2024
1 parent 8356278 commit fe87cb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/controllers/machine/machine_controller.go
Original file line number Diff line number Diff line change
@@ -1127,6 +1127,8 @@ func (w *attachedVolumeHelper) ignore(pv *corev1.PersistentVolume) {
func getPersistentVolumeClaimsFromIgnoredPods(ctx context.Context, remoteClient client.Client, nodeName string) (sets.Set[string], error) {
drainHelper := drain.Helper{
Client: remoteClient,
// TODO(chrischdi) we might have to set this to not ignore volumes for pods pending deletion
SkipWaitForDeleteTimeoutSeconds: 99999999,
}

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

0 comments on commit fe87cb7

Please sign in to comment.