kubernetes/kubernetes

[E2E] Review FilterNonRestartablePods

Ouverte

#109 703 ouverte le 28 avr. 2022

 (10 commentaires) (0 réaction) (1 personne assignée)Go (43 066 forks)batch import
area/node-e2earea/testhelp wantedneeds-triagepriority/backlogsig/node

Métriques du dépôt

Stars
 (122 268 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

FilterNonRestartablePods (and the corresponding isNotRestartAlwaysMirrorPod) are confusing functions. Either these are buggy, or they need to be renamed with much more descriptive comments.

  1. Should non-mirror pods with a RestartPolicy=Never be considered non-restartable?
  2. What does this mean: pods that will never get recreated if deleted after termination? Deleted pods will only be recreated if the controller decides to recreate them (in the case of mirror pods, the kubelet is the controller).

https://github.com/kubernetes/kubernetes/blob/a814b2af1c632afb9e2e231ce76379fa3c27bb25/test/e2e/framework/pod/resource.go#L479-L502

I'm missing too much context on the related tests to know what the right way of fixing this is. /help

/sig node /area test node-e2e

Guide contributeur