Documentation ¶
Index ¶
Constants ¶
View Source
const (
ControllerName = "harvester-network-nad-controller"
)
Harvester network nad watches network-attachment-definition CR, retrieve network configuration and make it effective. For example, the controller get VLAN ID from nad and add it to physical NIC attached with bridge.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (Handler) OnChange ¶
func (h Handler) OnChange(key string, nad *nadv1.NetworkAttachmentDefinition) (*nadv1.NetworkAttachmentDefinition, error)
func (Handler) OnRemove ¶
func (h Handler) OnRemove(key string, nad *nadv1.NetworkAttachmentDefinition) (*nadv1.NetworkAttachmentDefinition, error)
Click to show internal directories.
Click to hide internal directories.