Documentation
¶
Index ¶
- func GetNodeObject(clientset *kubernetes.Clientset, hostnameOverride string) (*apiv1.Node, error)
- func GetPodCidrFromCniSpec(cniConfFilePath string) (net.IPNet, error)
- func GetPodCidrFromNodeSpec(clientset *kubernetes.Clientset, hostnameOverride string) (string, error)
- func InsertPodCidrInCniSpec(cniConfFilePath string, cidr string) error
- type Broadcaster
- type Listener
- type ListenerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNodeObject ¶ added in v0.0.5
GetNodeObject returns the node API object for the node
func GetPodCidrFromCniSpec ¶
GetPodCidrFromCniSpec gets pod CIDR allocated to the node from CNI spec file and returns it
func GetPodCidrFromNodeSpec ¶
func GetPodCidrFromNodeSpec(clientset *kubernetes.Clientset, hostnameOverride string) (string, error)
GetPodCidrFromNodeSpec reads the pod CIDR allocated to the node from API node object and returns it
func InsertPodCidrInCniSpec ¶
InsertPodCidrInCniSpec inserts the pod CIDR allocated to the node by kubernetes controlller manager and stored it in the CNI specification
Types ¶
type Broadcaster ¶
type Broadcaster struct {
// contains filtered or unexported fields
}
Broadcaster holds the details of registered listeners
func NewBroadcaster ¶
func NewBroadcaster() *Broadcaster
NewBroadcaster returns an instance of Broadcaster object
func (*Broadcaster) Add ¶
func (b *Broadcaster) Add(listener Listener)
Add lets to register a listener
func (*Broadcaster) Notify ¶
func (b *Broadcaster) Notify(instance interface{})
Notify notifies an update to registered listeners
type ListenerFunc ¶
type ListenerFunc func(instance interface{})
func (ListenerFunc) OnUpdate ¶
func (f ListenerFunc) OnUpdate(instance interface{})
Click to show internal directories.
Click to hide internal directories.