- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for AddIPOffset (0.23 sec)
-
pkg/proxy/iptables/number_generated_rules_test.go
Name: ptr.To(fmt.Sprintf("%d", epPort)), Port: ptr.To(int32(epPort)), Protocol: ptr.To(v1.ProtocolTCP), }}, } for j := 0; j < nEndpoints; j++ { ipEp := netutils.AddIPOffset(baseEp, j) eps.Endpoints = append(eps.Endpoints, discovery.Endpoint{ Addresses: []string{ipEp.String()}, }) } if epsFunc != nil { epsFunc(eps) } // generate a base service object
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 14:39:54 UTC 2024 - 13.1K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/bitmap.go
} // update metrics r.metrics.incrementAllocations(label.String(), "dynamic") r.metrics.setAllocated(label.String(), r.Used()) r.metrics.setAvailable(label.String(), r.Free()) return netutils.AddIPOffset(r.base, offset), nil } // Release releases the IP back to the pool. Releasing an // unallocated IP or an IP out of the range is a no-op and // returns no error. func (r *Range) Release(ip net.IP) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 25 20:32:40 UTC 2023 - 10.8K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/ipallocator.go
} func (dry dryRunAllocator) EnableMetrics() { } // addOffsetAddress returns the address at the provided offset within the subnet // TODO: move it to k8s.io/utils/net, this is the same as current AddIPOffset() // but using netip.Addr instead of net.IP func addOffsetAddress(address netip.Addr, offset uint64) (netip.Addr, error) { addressBytes := address.AsSlice() addressBig := big.NewInt(0).SetBytes(addressBytes)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:04 UTC 2023 - 17K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/bitmap_test.go
t.Helper() if u := r.Used(); u != expect { t.Errorf("unexpected used count: got %d, wanted %d", u, expect) } } expectUsed(t, r, baseUsed) err = r.DryRun().Allocate(netutils.AddIPOffset(netutils.BigForIP(cidr.IP), 1)) if err != nil { t.Fatalf("unexpected failure: %v", err) } expectUsed(t, r, baseUsed) _, err = r.DryRun().AllocateNext() if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 25 20:32:40 UTC 2023 - 21.1K bytes - Viewed (0)