nodediscovery

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AutoCIDR indicates that a CIDR should be allocated
	AutoCIDR = "auto"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration added in v1.6.0

type Configuration interface {
	// GetNetConf must return the CNI configuration as passed in by the
	// user
	GetNetConf() *cnitypes.NetConf
}

Configuration is the configuration interface that must be implemented in order to manage node discovery

type NodeDiscovery

type NodeDiscovery struct {
	Manager     *nodemanager.Manager
	LocalConfig datapath.LocalNodeConfiguration
	Registrar   nodestore.NodeRegistrar
	LocalNode   node.Node
	Registered  chan struct{}
}

NodeDiscovery represents a node discovery action

func NewNodeDiscovery

func NewNodeDiscovery(manager *nodemanager.Manager, mtuConfig mtu.Configuration) *NodeDiscovery

NewNodeDiscovery returns a pointer to new node discovery object

func (*NodeDiscovery) Close

func (n *NodeDiscovery) Close()

Close shuts down the node discovery engine

func (*NodeDiscovery) StartDiscovery

func (n *NodeDiscovery) StartDiscovery(nodeName string, conf Configuration)

start configures the local node and starts node discovery. This is called on agent startup to configure the local node based on the configuration options passed to the agent. nodeName is the name to be used in the local agent.

func (*NodeDiscovery) UpdateCiliumNodeResource added in v1.6.0

func (n *NodeDiscovery) UpdateCiliumNodeResource(conf Configuration)

UpdateCiliumNodeResource updates the CiliumNode resource representing the local node

Jump to

Keyboard shortcuts

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