mpi-operator
mpi-operator copied to clipboard
"cleanPodPolicy: All" does not clean up launcher pod
In MPIJob spec.runPolicy.cleanPodPolicy, we can set "All" to clean up all pods after completion including the launcher pod. However, it seems it only cleans up worker pods, as you can see in this code.
Using the official example pi.yaml, if you change "cleanPodPolicy: Running" to "cleanPodPolicy: All", you can reproduce the issue.
Feel free to open a PR