controller

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2019 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitClusterRouter

func InitClusterRouter(config *Configuration) error

func InitDefaultLogicalSwitch

func InitDefaultLogicalSwitch(config *Configuration) error

func InitLoadBalancer

func InitLoadBalancer(config *Configuration) error

func InitNodeSwitch

func InitNodeSwitch(config *Configuration) error

Types

type Configuration

type Configuration struct {
	BindAddress    string
	OvnNbSocket    string
	OvnNbHost      string
	OvnNbPort      int
	KubeConfigFile string
	KubeClient     kubernetes.Interface

	DefaultLogicalSwitch string
	DefaultCIDR          string
	DefaultGateway       string
	DefaultExcludeIps    string

	ClusterRouter     string
	NodeSwitch        string
	NodeSwitchCIDR    string
	NodeSwitchGateway string

	ClusterTcpLoadBalancer string
	ClusterUdpLoadBalancer string
}

func ParseFlags

func ParseFlags() (*Configuration, error)

TODO: validate configuration

type Controller

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

func NewController

func NewController(
	config *Configuration,
	informerFactory informers.SharedInformerFactory) *Controller

NewController returns a new ovn controller

func (*Controller) Run

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

Run will set up the event handlers for types we are interested in, as well as syncing informer caches and starting workers. It will block until stopCh is closed, at which point it will shutdown the workqueue and wait for workers to finish processing their current work items.

Jump to

Keyboard shortcuts

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