Merge pull request #139182 from PseudoResonance/master

Expose CIDR allocator error reason
This commit is contained in:
Kubernetes Prow Robot 2026-05-20 18:31:55 +05:30 committed by GitHub
commit 6582c56124
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -282,13 +282,13 @@ func (c *MetaAllocator) syncAllocators() error {
// Create new allocator for ServiceCIDR
_, ipnet, err := netutils.ParseCIDRSloppy(cidr) // this was already validated
if err != nil {
klog.Infof("error parsing cidr %s", cidr)
klog.Infof("error parsing cidr %s: %v", cidr, err)
continue
}
// New ServiceCIDR, create new allocator
allocator, err := NewIPAllocator(ipnet, c.client, c.ipAddressInformer)
if err != nil {
klog.Infof("error creating new IPAllocator for Service CIDR %s", cidr)
klog.Infof("error creating new IPAllocator for Service CIDR %s: %v", cidr, err)
continue
}
if c.metrics {