From 3917342bbb1857ee948b78c217f17c0547901163 Mon Sep 17 00:00:00 2001 From: wlan0 Date: Tue, 3 Jan 2017 15:33:01 -0800 Subject: [PATCH] make private method private --- cmd/cloud-controller-manager/app/controllermanager.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/cloud-controller-manager/app/controllermanager.go b/cmd/cloud-controller-manager/app/controllermanager.go index 8e6f4b2889..636a1edfe4 100644 --- a/cmd/cloud-controller-manager/app/controllermanager.go +++ b/cmd/cloud-controller-manager/app/controllermanager.go @@ -70,8 +70,8 @@ the cloud specific control loops shipped with Kubernetes.`, return cmd } -// ResyncPeriod computes the time interval a shared informer waits before resyncing with the api server -func ResyncPeriod(s *options.CloudControllerManagerServer) func() time.Duration { +// resyncPeriod computes the time interval a shared informer waits before resyncing with the api server +func resyncPeriod(s *options.CloudControllerManagerServer) func() time.Duration { return func() time.Duration { factor := rand.Float64() + 1 return time.Duration(float64(s.MinResyncPeriod.Nanoseconds()) * factor) @@ -191,7 +191,7 @@ func StartControllers(s *options.CloudControllerManagerServer, kubeconfig *restc client := func(serviceAccountName string) clientset.Interface { return rootClientBuilder.ClientOrDie(serviceAccountName) } - sharedInformers := informers.NewSharedInformerFactory(client("shared-informers"), nil, ResyncPeriod(s)()) + sharedInformers := informers.NewSharedInformerFactory(client("shared-informers"), nil, resyncPeriod(s)()) _, clusterCIDR, err := net.ParseCIDR(s.ClusterCIDR) if err != nil {