defaultservicecidr

package
v1.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultServiceCIDRName = "kubernetes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller manages selector-based service ipAddress.

func NewController

func NewController(
	primaryRange net.IPNet,
	secondaryRange net.IPNet,
	client clientset.Interface,
) *Controller

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 (*Controller) Start

func (c *Controller) Start(stopCh <-chan struct{})

Start will not return until the default ServiceCIDR exists or stopCh is closed.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL