You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -32,7 +35,6 @@ func (o *NodeIPAMControllerOptions) AddFlags(fs *pflag.FlagSet) {
32
35
ifo==nil {
33
36
return
34
37
}
35
-
36
38
fs.StringVar(&o.ServiceCIDR, "service-cluster-ip-range", o.ServiceCIDR, "CIDR Range for Services in cluster. Requires --allocate-node-cidrs to be true")
37
39
fs.Int32Var(&o.NodeCIDRMaskSize, "node-cidr-mask-size", o.NodeCIDRMaskSize, "Mask size for node cidr in cluster.")
38
40
}
@@ -43,7 +45,15 @@ func (o *NodeIPAMControllerOptions) ApplyTo(cfg *nodeipamconfig.NodeIPAMControll
43
45
returnnil
44
46
}
45
47
46
-
cfg.ServiceCIDR=o.ServiceCIDR
48
+
// split the cidrs list and assign primary and secondary
Copy file name to clipboardExpand all lines: pkg/controller/nodeipam/config/types.go
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,8 @@ package config
20
20
typeNodeIPAMControllerConfigurationstruct {
21
21
// serviceCIDR is CIDR Range for Services in cluster.
22
22
ServiceCIDRstring
23
+
// secondaryServiceCIDR is CIDR Range for Services in cluster. This is used in dual stack clusters. SecondaryServiceCIDR must be of different IP family than ServiceCIDR
24
+
SecondaryServiceCIDRstring
23
25
// NodeCIDRMaskSize is the mask size for node cidr in cluster.
0 commit comments