move repair loop interval to a constant

use Extraconfig to configure the repair interval

and add an integration test for services finalizers, and
possible races with the services repair loop.
This commit is contained in:
Antonio Ojea
2021-06-17 18:17:50 +02:00
committed by Antonio Ojea
parent dcfe8f5d5c
commit 7c12daed0f
4 changed files with 176 additions and 3 deletions

View File

@@ -42,7 +42,9 @@ import (
"k8s.io/kubernetes/pkg/util/async"
)
const kubernetesServiceName = "kubernetes"
const (
kubernetesServiceName = "kubernetes"
)
// Controller is the controller manager for the core bootstrap Kubernetes
// controller loops, which manage creating the "kubernetes" service, the
@@ -110,11 +112,11 @@ func (c *completedConfig) NewBootstrapController(legacyRESTStorage corerest.Lega
SecondaryServiceClusterIPRegistry: legacyRESTStorage.SecondaryServiceClusterIPAllocator,
SecondaryServiceClusterIPRange: c.ExtraConfig.SecondaryServiceIPRange,
ServiceClusterIPInterval: 3 * time.Minute,
ServiceClusterIPInterval: c.ExtraConfig.RepairServicesInterval,
ServiceNodePortRegistry: legacyRESTStorage.ServiceNodePortAllocator,
ServiceNodePortRange: c.ExtraConfig.ServiceNodePortRange,
ServiceNodePortInterval: 3 * time.Minute,
ServiceNodePortInterval: c.ExtraConfig.RepairServicesInterval,
PublicIP: c.GenericConfig.PublicAddress,