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

Function contains

pkg/devspace/kubectl/selector/selector.go:206–213  ·  view source on GitHub ↗
(stack []*SelectedPodContainer, k string)

Source from the content-addressed store, hash-verified

204}
205
206func contains(stack []*SelectedPodContainer, k string) bool {
207 for _, s := range stack {
208 if key(s.Pod.Namespace, s.Pod.Name, s.Container.Name) == k {
209 return true
210 }
211 }
212 return false
213}
214
215func key(namespace string, pod string, container string) string {
216 return namespace + "/" + pod + "/" + container

Callers 1

deduplicateFunction · 0.70

Calls 1

keyFunction · 0.70

Tested by

no test coverage detected