Skip to content

Commit e9cde03

Browse files
authored
Merge pull request kubernetes#127598 from aojea/servicecidr_seconday_dualwrite
bugfix: initialize secondary range registry with the right value
2 parents 63fc917 + 7a9bca3 commit e9cde03

File tree

2 files changed

+1109
-988
lines changed

2 files changed

+1109
-988
lines changed

pkg/registry/core/rest/storage_core.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ func (c *Config) newServiceIPAllocators() (registries rangeRegistries, primaryCl
440440
if err != nil {
441441
return nil, err
442442
}
443-
rangeRegistry.Range = serviceClusterIPRange.String()
443+
rangeRegistry.Range = c.Services.SecondaryClusterIPRange.String()
444444
if len(rangeRegistry.ResourceVersion) == 0 {
445445
klog.Infof("kube-apiserver started with IP allocator and dual write enabled but bitmap allocator does not exist, recreating it ...")
446446
err := etcd.CreateOrUpdate(rangeRegistry)

0 commit comments

Comments
 (0)