MCPcopy
hub / github.com/kubernetes-sigs/kwok / Use

Method Use

pkg/kwok/controllers/utils.go:99–106  ·  view source on GitHub ↗
(ip string)

Source from the content-addressed store, hash-verified

97}
98
99func (i *ipPool) Use(ip string) {
100 i.mut.Lock()
101 defer i.mut.Unlock()
102 if !i.cidr.Contains(net.ParseIP(ip)) {
103 return
104 }
105 i.used[ip] = struct{}{}
106}
107
108func labelsParse(selector string) (labels.Selector, error) {
109 if selector == "" {

Callers 1

markPodIPMethod · 0.80

Calls 2

ParseIPFunction · 0.92
ContainsMethod · 0.80

Tested by

no test coverage detected