MCPcopy Create free account
hub / github.com/devspace-sh/devspace / initContainerPos

Function initContainerPos

pkg/devspace/kubectl/selector/selector.go:37–44  ·  view source on GitHub ↗
(container string, pod *corev1.Pod)

Source from the content-addressed store, hash-verified

35}
36
37func 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
46var FilterTerminatingContainers = func(p *corev1.Pod, c *corev1.Container) bool {
47 return IsPodTerminating(p)

Callers 1

selector.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected