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

Function containsPod

pkg/devspace/kubectl/selector/selector.go:197–204  ·  view source on GitHub ↗
(stack []*corev1.Pod, k string)

Source from the content-addressed store, hash-verified

195}
196
197func containsPod(stack []*corev1.Pod, k string) bool {
198 for _, s := range stack {
199 if key(s.Namespace, s.Name, "") == k {
200 return true
201 }
202 }
203 return false
204}
205
206func contains(stack []*SelectedPodContainer, k string) bool {
207 for _, s := range stack {

Callers 1

PodsFromPodContainerFunction · 0.85

Calls 1

keyFunction · 0.70

Tested by

no test coverage detected