Merge pull request #127598 from aojea/servicecidr_seconday_dualwrite

bugfix: initialize secondary range registry with the right value
This commit is contained in:
Kubernetes Prow Robot
2024-09-24 21:08:08 +01:00
committed by GitHub
2 changed files with 1096 additions and 975 deletions

View File

@@ -440,7 +440,7 @@ func (c *Config) newServiceIPAllocators() (registries rangeRegistries, primaryCl
if err != nil {
return nil, err
}
rangeRegistry.Range = serviceClusterIPRange.String()
rangeRegistry.Range = c.Services.SecondaryClusterIPRange.String()
if len(rangeRegistry.ResourceVersion) == 0 {
klog.Infof("kube-apiserver started with IP allocator and dual write enabled but bitmap allocator does not exist, recreating it ...")
err := etcd.CreateOrUpdate(rangeRegistry)

File diff suppressed because it is too large Load Diff