common

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyNodeName      = "NODENAME"
	KeyLabelNodeName = networkv1.GroupName + "/nodename"
)

Variables

This section is empty.

Functions

func CreateAllNodeNetworkIfNotExist

func CreateAllNodeNetworkIfNotExist(networkType networkv1.NetworkType, cn *networkv1.ClusterNetwork,
	nodeClient ctlcorev1.NodeClient, nodenetworkCache ctlnetworkv1.NodeNetworkCache,
	nodenetworkClient ctlnetworkv1.NodeNetworkClient) error

func CreateNodeNetworkIfNotExist

func CreateNodeNetworkIfNotExist(node *corev1.Node, networkTye networkv1.NetworkType,
	cn *networkv1.ClusterNetwork, nodeNetworkCache ctlnetworkv1.NodeNetworkCache,
	nodeNetworkClient ctlnetworkv1.NodeNetworkClient) (*networkv1.NodeNetwork, error)

func DeleteAllNodeNetwork

func DeleteAllNodeNetwork(networkTye networkv1.NetworkType, nodeNetworkCache ctlnetworkv1.NodeNetworkCache,
	nodeNetworkClient ctlnetworkv1.NodeNetworkClient) error

func NewNodeNetworkFromNode

func NewNodeNetworkFromNode(node *corev1.Node, networkType networkv1.NetworkType,
	cn *networkv1.ClusterNetwork) *networkv1.NodeNetwork

func SetNICForAllNodeNetworks added in v0.2.2

func SetNICForAllNodeNetworks(enable bool, nic string, cache ctlnetworkv1.NodeNetworkCache, client ctlnetworkv1.NodeNetworkClient) error

if cluster network is open, set the default NIC for all node networks. if cluster network is close, clear the NIC specification of all node networks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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