openshift_sdn

package
v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 57 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOpenShiftSDNCommand

func NewOpenShiftSDNCommand(basename string, errout io.Writer) *cobra.Command

func ProxyConfigFromNodeConfig

func ProxyConfigFromNodeConfig(options configapi.NodeConfig) (*kubeproxyconfig.KubeProxyConfiguration, error)

ProxyConfigFromNodeConfig builds the kube-proxy configuration from the already-parsed nodeconfig.

Types

type OpenShiftSDN

type OpenShiftSDN struct {
	ConfigFilePath            string
	KubeConfigFilePath        string
	URLOnlyKubeConfigFilePath string

	NodeConfig  *configapi.NodeConfig
	ProxyConfig *kubeproxyconfig.KubeProxyConfiguration

	OsdnNode  *sdnnode.OsdnNode
	OsdnProxy *sdnproxy.OsdnProxy
	// contains filtered or unexported fields
}

OpenShiftSDN stores the variables needed to initialize the real networking processess from the command line.

func (*OpenShiftSDN) Init

func (sdn *OpenShiftSDN) Init() error

Init builds the underlying structs for the network processes.

func (*OpenShiftSDN) Run

func (sdn *OpenShiftSDN) Run(c *cobra.Command, errout io.Writer, stopCh chan struct{})

Run starts the network process. Does not return.

func (*OpenShiftSDN) Start

func (sdn *OpenShiftSDN) Start(stopCh <-chan struct{}) error

Start starts the network, proxy, and informers, then returns.

func (*OpenShiftSDN) ValidateAndParse

func (sdn *OpenShiftSDN) ValidateAndParse() error

ValidateAndParse validates the command line options, parses the node configuration, and builds the upstream proxy configuration.

Source Files

  • cmd.go
  • informers.go
  • proxy.go
  • sdn.go

Jump to

Keyboard shortcuts

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