Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOpenShiftSDNCommand ¶
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.
Click to show internal directories.
Click to hide internal directories.