Commit 3e3cbf8
committed
Remove must-gather pod after it completes when explicit namespace is used
Currently, when user passes `--run-namespace` flag, must-gather pod
becomes stale and is not removed.
The reason is that `copy` container in the pod is set sleeping
infinite, thus pod never falls into `completed` status to be collected
by garbage collector.
One option is setting to a precise duration for sleeping. But that
also means that we will delay pod removal to a certain time which is
presumably long(2 hours maybe?).
Other option is removing the must-gather pod manually.
This PR applies second option because we know when task is completed
and there might be no need to delay this removal.1 parent 619c8d7 commit 3e3cbf8
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
382 | 395 | | |
383 | 396 | | |
384 | 397 | | |
| |||
0 commit comments