Documentation ¶
Index ¶
Constants ¶
View Source
const (
ExportPaused = "ExportPaused"
)
Variables ¶
This section is empty.
Functions ¶
func ContainerEnvToMap ¶ added in v1.3.0
ContainerEnvToMap converts the container environment variables to a map
func EnvironToMap ¶ added in v1.3.0
EnvironToMap converts the environment variables to a map
Types ¶
type CertParams ¶ added in v0.58.0
type ServerPaths ¶ added in v1.3.0
type ServerPaths struct { VMURI string SecretURI string Volumes []VolumeInfo }
ServerPaths contains static paths and per-volume paths
func CreateServerPaths ¶ added in v1.3.0
func CreateServerPaths(env map[string]string) *ServerPaths
CreateServerPaths creates a ServerPaths object from the environment variables
func (*ServerPaths) GetVolumeInfo ¶ added in v1.3.0
func (sp *ServerPaths) GetVolumeInfo(pvcName string) *VolumeInfo
GetVolumeInfo returns the VolumeInfo for a given PVC name
type VMExportController ¶
type VMExportController struct { Client kubecli.KubevirtClient TemplateService services.TemplateService VMExportInformer cache.SharedIndexInformer PVCInformer cache.SharedIndexInformer VMSnapshotInformer cache.SharedIndexInformer VMSnapshotContentInformer cache.SharedIndexInformer PodInformer cache.SharedIndexInformer DataVolumeInformer cache.SharedIndexInformer ConfigMapInformer cache.SharedIndexInformer ServiceInformer cache.SharedIndexInformer VMInformer cache.SharedIndexInformer VMIInformer cache.SharedIndexInformer RouteConfigMapInformer cache.SharedInformer RouteCache cache.Store IngressCache cache.Store SecretInformer cache.SharedIndexInformer CRDInformer cache.SharedIndexInformer KubeVirtInformer cache.SharedIndexInformer VolumeSnapshotProvider snapshot.VolumeSnapshotProvider InstancetypeInformer cache.SharedIndexInformer ClusterInstancetypeInformer cache.SharedIndexInformer PreferenceInformer cache.SharedIndexInformer ClusterPreferenceInformer cache.SharedIndexInformer ControllerRevisionInformer cache.SharedIndexInformer Recorder record.EventRecorder KubevirtNamespace string // contains filtered or unexported fields }
VMExportController is resonsible for exporting VMs
func (*VMExportController) Init ¶
func (ctrl *VMExportController) Init() error
Init initializes the export controller
func (*VMExportController) Run ¶
func (ctrl *VMExportController) Run(threadiness int, stopCh <-chan struct{}) error
Run the controller
Click to show internal directories.
Click to hide internal directories.