Skip to content

Commit 56b9a69

Browse files
authored
Merge pull request kubernetes#90439 from SataQiu/dual-stack-node-cidr-20200424
Dual-stack: make nodeipam compatible with existing single-stack clusters when dual-stack feature gate become enabled by default
2 parents f5a42d6 + ec1efc3 commit 56b9a69

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
@@ -157,13 +157,13 @@ func startNodeIpamController(ctx ControllerContext) (http.Handler, bool, error)
157157
}
158158

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

0 commit comments

Comments
 (0)