code: func (c *completedConfig) NewBootstrapController(legacyRESTStorage corerest.LegacyRESTStorage, serviceClient corev1client.ServicesGetter, nsClient corev1client.NamespacesGetter, eventClient corev1client.EventsGetter, healthClient rest.Interface) *Controller {
  	_, publicServicePort, err := c.GenericConfig.SecureServing.HostPort()
  	if err != nil {
  		klog.Fatalf("failed to get listener address: %v", err)
  	}
  
  	systemNamespaces := []string{metav1.NamespaceSystem, metav1.NamespacePublic}
  	if utilfeature.DefaultFeatureGate.Enabled(features.NodeLease) {
  		systemNamespaces = append(systemNamespaces, corev1.NamespaceNodeLease)
  	}
  
  	return &Controller{
  		ServiceClient:   serviceClient,
  		NamespaceClient: nsClient,
  		EventClient:     eventClient,
  		healthClient:    healthClient,
  
  		EndpointReconciler: c.ExtraConfig.EndpointReconcilerConfig.Reconciler,
  		EndpointInterval:   c.ExtraConfig.EndpointReconcilerConfig.Interval,
  
  		SystemNamespaces:         systemNamespaces,
  		SystemNamespacesInterval: 1 * time.Minute,
  
  		ServiceClusterIPRegistry: legacyRESTStorage.ServiceClusterIPAllocator,
  		ServiceClusterIPRange:    c.ExtraConfig.ServiceIPRange,
  		ServiceClusterIPInterval: 3 * time.Minute,
  
  		ServiceNodePortRegistry: legacyRESTStorage.ServiceNodePortAllocator,
  		ServiceNodePortRange:    c.ExtraConfig.ServiceNodePortRange,
  		ServiceNodePortInterval: 3 * time.Minute,
  
  		PublicIP: c.GenericConfig.PublicAddress,
  
  		ServiceIP:                 c.ExtraConfig.APIServerServiceIP,
  		ServicePort:               c.ExtraConfig.APIServerServicePort,
  		ExtraServicePorts:         c.ExtraConfig.ExtraServicePorts,
  		ExtraEndpointPorts:        c.ExtraConfig.ExtraEndpointPorts,
  		PublicServicePort:         publicServicePort,
  		KubernetesServiceNodePort: c.ExtraConfig.KubernetesServiceNodePort,
  	}
  }
docs: // NewBootstrapController returns a controller for watching the core capabilities of the master