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

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.

Jump to

Keyboard shortcuts

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