Skip to content

Commit ec1efc3

Browse files
committed
dual-stack: make nodeipam compatible with existing single-stack clusters when dual-stack feature gate become enabled by default
Signed-off-by: SataQiu <[email protected]>
1 parent dd649bb commit ec1efc3

File tree

1 file changed

+2
-2
lines changed
  • cmd/kube-controller-manager/app

1 file changed

+2
-2
lines changed

cmd/kube-controller-manager/app/core.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,13 @@ func startNodeIpamController(ctx ControllerContext) (http.Handler, bool, error)
156156
}
157157

158158
var nodeCIDRMaskSizeIPv4, nodeCIDRMaskSizeIPv6 int
159-
if utilfeature.DefaultFeatureGate.Enabled(features.IPv6DualStack) {
159+
if dualStack {
160160
// only --node-cidr-mask-size-ipv4 and --node-cidr-mask-size-ipv6 supported with dual stack clusters.
161161
// --node-cidr-mask-size flag is incompatible with dual stack clusters.
162162
nodeCIDRMaskSizeIPv4, nodeCIDRMaskSizeIPv6, err = setNodeCIDRMaskSizesDualStack(ctx.ComponentConfig.NodeIPAMController)
163163
} else {
164164
// only --node-cidr-mask-size supported with single stack clusters.
165-
// --node-cidr-mask-size-ipv4 and --node-cidr-mask-size-ipv6 flags are incompatible with dual stack clusters.
165+
// --node-cidr-mask-size-ipv4 and --node-cidr-mask-size-ipv6 flags are incompatible with single stack clusters.
166166
nodeCIDRMaskSizeIPv4, nodeCIDRMaskSizeIPv6, err = setNodeCIDRMaskSizes(ctx.ComponentConfig.NodeIPAMController)
167167
}
168168

0 commit comments

Comments
 (0)