const controllerName … const DefaultServiceCIDRName … // NewController returns a new *Controller that generates the default ServiceCIDR // from the `--service-cluster-ip-range` flag and recreates it if necessary, // but doesn't update it if is different. // It follows the same logic that the kubernetes.default Service. func NewController( primaryRange net.IPNet, secondaryRange net.IPNet, client clientset.Interface, ) *Controller { … } type Controller … // Start will not return until the default ServiceCIDR exists or stopCh is closed. func (c *Controller) Start(ctx context.Context) { … } func (c *Controller) sync() error { … } func (c *Controller) syncStatus(serviceCIDR *networkingapiv1beta1.ServiceCIDR) { … }