Documentation ¶
Index ¶
Constants ¶
View Source
const ( ControllerName = "harvester-storage-network-controller" StorageNetworkAnnotation = "storage-network.settings.harvesterhci.io" ReplicaStorageNetworkAnnotation = StorageNetworkAnnotation + "/replica" PausedStorageNetworkAnnotation = StorageNetworkAnnotation + "/paused" HashStorageNetworkAnnotation = StorageNetworkAnnotation + "/hash" NadStorageNetworkAnnotation = StorageNetworkAnnotation + "/net-attach-def" OldNadStorageNetworkAnnotation = StorageNetworkAnnotation + "/old-net-attach-def" StorageNetworkNetAttachDefPrefix = "storagenetwork-" StorageNetworkNetAttachDefNamespace = "harvester-system" BridgeSuffix = "-br" CNIVersion = "0.3.1" DefaultPVID = 1 DefaultCNI = "bridge" DefaultIPAM = "whereabouts" // status ReasonInProgress = "In Progress" ReasonCompleted = "Completed" MsgRestartPod = "Restarting Pods" MsgStopPod = "Stopping Pods" MsgWaitForVolumes = "Waiting for all volumes detached: %s" MsgUpdateLonghornSetting = "Update Longhorn setting" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BridgeConfig ¶
type BridgeConfig struct { cniv1.NetConf Bridge string `json:"bridge"` PromiscMode bool `json:"promiscMode"` Vlan uint16 `json:"vlan"` IPAM IPAMConfig `json:"ipam"` }
func NewBridgeConfig ¶
func NewBridgeConfig() *BridgeConfig
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) OnStorageNetworkChange ¶
func (h *Handler) OnStorageNetworkChange(_ string, setting *harvesterv1.Setting) (*harvesterv1.Setting, error)
webhook needs check if VMs are off
type IPAMConfig ¶
Click to show internal directories.
Click to hide internal directories.