const maxRetries …
const controllerName …
const ServiceCIDRProtectionFinalizer …
const deletionGracePeriod …
func NewController(
ctx context.Context,
serviceCIDRInformer networkinginformers.ServiceCIDRInformer,
ipAddressInformer networkinginformers.IPAddressInformer,
client clientset.Interface,
) *Controller { … }
type Controller …
func (c *Controller) Run(ctx context.Context, workers int) { … }
func (c *Controller) addServiceCIDR(obj interface{ … }
func (c *Controller) updateServiceCIDR(oldObj, obj interface{ … }
func (c *Controller) deleteServiceCIDR(obj interface{ … }
func (c *Controller) addIPAddress(obj interface{ … }
func (c *Controller) deleteIPAddress(obj interface{ … }
func (c *Controller) overlappingServiceCIDRs(serviceCIDR *networkingapiv1beta1.ServiceCIDR) []string { … }
func (c *Controller) containingServiceCIDRs(ip *networkingapiv1beta1.IPAddress) []string { … }
func (c *Controller) worker(ctx context.Context) { … }
func (c *Controller) processNext(ctx context.Context) bool { … }
func (c *Controller) sync(ctx context.Context, key string) error { … }
func (c *Controller) canDeleteCIDR(ctx context.Context, serviceCIDR *networkingapiv1beta1.ServiceCIDR) (bool, error) { … }
func (c *Controller) addServiceCIDRFinalizerIfNeeded(ctx context.Context, cidr *networkingapiv1beta1.ServiceCIDR) error { … }
func (c *Controller) removeServiceCIDRFinalizerIfNeeded(ctx context.Context, cidr *networkingapiv1beta1.ServiceCIDR) error { … }
func convertToV1IPFamily(ipFamily netutils.IPFamily) v1.IPFamily { … }