From 4bee62cfd78e1e82111e1f37a484751784d8a9dc Mon Sep 17 00:00:00 2001 From: Andrew Sy Kim Date: Wed, 2 Dec 2020 21:07:31 -0500 Subject: [PATCH] cloud-controller-manager: routes controller should not depend on --allocate-node-cidrs Signed-off-by: Andrew Sy Kim --- staging/src/k8s.io/cloud-provider/app/core.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/staging/src/k8s.io/cloud-provider/app/core.go b/staging/src/k8s.io/cloud-provider/app/core.go index d7a1ccc5c9c..fbebc0b1390 100644 --- a/staging/src/k8s.io/cloud-provider/app/core.go +++ b/staging/src/k8s.io/cloud-provider/app/core.go @@ -104,8 +104,8 @@ func startServiceController(ctx *config.CompletedConfig, cloud cloudprovider.Int } func startRouteController(ctx *config.CompletedConfig, cloud cloudprovider.Interface, stopCh <-chan struct{}) (http.Handler, bool, error) { - if !ctx.ComponentConfig.KubeCloudShared.AllocateNodeCIDRs || !ctx.ComponentConfig.KubeCloudShared.ConfigureCloudRoutes { - klog.Infof("Will not configure cloud provider routes for allocate-node-cidrs: %v, configure-cloud-routes: %v.", ctx.ComponentConfig.KubeCloudShared.AllocateNodeCIDRs, ctx.ComponentConfig.KubeCloudShared.ConfigureCloudRoutes) + if !ctx.ComponentConfig.KubeCloudShared.ConfigureCloudRoutes { + klog.Infof("Will not configure cloud provider routes, --configure-cloud-routes: %v", ctx.ComponentConfig.KubeCloudShared.ConfigureCloudRoutes) return nil, false, nil }