factory

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	KClient        kubernetes.Interface
	IFactory       informerfactory.SharedInformerFactory
	ResyncInterval time.Duration
}

Factory initializes and manages the kube watches that drive an ovn controller

func NewDefaultFactory

func NewDefaultFactory(c kubernetes.Interface) *Factory

NewDefaultFactory initializes a default ovn controller factory.

func (*Factory) CreateClusterController

func (factory *Factory) CreateClusterController() *cluster.OvnClusterController

CreateClusterController creates the controller for cluster management that watches nodes and gives out the subnets for the logical switch meant for the node

func (*Factory) CreateOvnController

func (factory *Factory) CreateOvnController() *ovn.Controller

CreateOvnController begins listing and watching against the API server for the pod and endpoint resources. It spawns child goroutines that cannot be terminated.

Jump to

Keyboard shortcuts

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