daemon

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: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SubnetSet   = "subnets"
	LocalPodSet = "local-pod-ip-nat"
	IPSetPrefix = "ovn"
)

Variables

View Source
var RequestLogString = "[%s] Incoming %s %s %s request"
View Source
var ResponseLogString = "[%s] Outcoming response %s %s with %d status code in %vms"

Functions

func InitNodeGateway

func InitNodeGateway(config *Configuration) error

func RunServer

func RunServer(config *Configuration)

Types

type CniServerHandler

type CniServerHandler struct {
	Config     *Configuration
	KubeClient kubernetes.Interface
}

type Configuration

type Configuration struct {
	BindSocket            string
	OvsSocket             string
	KubeConfigFile        string
	KubeClient            kubernetes.Interface
	NodeName              string
	OvnNbHost             string
	OvnNbPort             int
	OvnSbHost             string
	OvnSbPort             int
	ClusterRouter         string
	NodeSwitch            string
	ServiceClusterIPRange 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, error)

func (*Controller) Run

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

Jump to

Keyboard shortcuts

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