(container string, pod *corev1.Pod)
| 35 | } |
| 36 | |
| 37 | func initContainerPos(container string, pod *corev1.Pod) int { |
| 38 | for i, c := range pod.Spec.InitContainers { |
| 39 | if c.Name == container { |
| 40 | return i |
| 41 | } |
| 42 | } |
| 43 | return -1 |
| 44 | } |
| 45 | |
| 46 | var FilterTerminatingContainers = func(p *corev1.Pod, c *corev1.Container) bool { |
| 47 | return IsPodTerminating(p) |