Commit c478cf2
committed
fix(api, vmop): fix getTargetPodDiskError to check Pending pod directly
kubelet emits FailedAttachVolume/FailedMount events while pod is in
Pending phase — before ContainerCreating state is ever reached.
The previous ContainerCreating guard prevented detection entirely.
Now check events for any Pending pod that is not being deleted.
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>1 parent fed7237 commit c478cf2
1 file changed
Lines changed: 14 additions & 25 deletions
Lines changed: 14 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
652 | | - | |
| 652 | + | |
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
660 | 666 | | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
680 | 670 | | |
681 | 671 | | |
682 | | - | |
683 | 672 | | |
684 | 673 | | |
685 | 674 | | |
| |||
0 commit comments