- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NewMetaAllocator (0.13 sec)
-
pkg/registry/core/service/ipallocator/cidrallocator.go
muTree sync.Mutex tree *iptree.Tree[*Allocator] ipFamily api.IPFamily } var _ Interface = &MetaAllocator{} // NewMetaAllocator returns an IP allocator that use the IPAddress // and ServiceCIDR objects to track the assigned IP addresses, // using an informer cache as storage. func NewMetaAllocator( client networkingv1alpha1client.NetworkingV1alpha1Interface, serviceCIDRInformer networkingv1alpha1informers.ServiceCIDRInformer,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 13.2K bytes - Viewed (0) -
pkg/registry/core/rest/storage_core.go
// since right now it depends on the service-cidr flags and // sets the default IPFamily that may not be coherent with the // existing default ServiceCIDR primaryClusterIPAllocator, err = ipallocator.NewMetaAllocator( networkingv1alphaClient, c.Informers.Networking().V1alpha1().ServiceCIDRs(), c.Informers.Networking().V1alpha1().IPAddresses(), netutils.IsIPv6CIDR(&serviceClusterIPRange), ) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:05 UTC 2023 - 19.1K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/cidrallocator_test.go
ip := &networkingv1alpha1.IPAddress{} if exists && err == nil { ip = obj.(*networkingv1alpha1.IPAddress) err = ipStore.Delete(ip) } return false, ip, err })) c, err := NewMetaAllocator(client.NetworkingV1alpha1(), serviceCIDRInformer, ipInformer, false) if err != nil { return nil, err } // we can not force the state of the informers to be synced without racing // so we run our worker here
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:06 UTC 2023 - 13.7K bytes - Viewed (0)