Documentation ¶
Index ¶
Constants ¶
View Source
const ( // LocalVolume events ErrorRunningBlockList = "ErrorRunningBlockList" ErrorReadingBlockList = "ErrorReadingBlockList" ErrorListingDeviceID = "ErrorListingDeviceID" ErrorFindingMatchingDisk = "ErrorFindingMatchingDisk" ErrorCreatingSymLink = "ErrorCreatingSymLink" FoundMatchingDisk = "FoundMatchingDisk" DeviceSymlinkExists = "DeviceSymlinkExists" SymLinkedOnDeviceName = "SymlinkedOnDeivceName" )
View Source
const (
// ComponentName for lv symlinker
ComponentName = "localvolume-symlink-controller"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiskConfig ¶
type DiskConfig struct { Disks map[string]*Disks `json:"disks,omitempty"` OwnerName string `json:"ownerName,omitempty"` OwnerNamespace string `json:"ownerNamespace,omitempty"` OwnerKind string `json:"ownerKind,omitempty"` OwnerUID string `json:"ownerUID,omitempty"` OwnerAPIVersion string `json:"ownerAPIVersion,omitempty"` }
DiskConfig stores a mapping between StorageClass Name and disks that the storageclass will use on each matached node.
func (*DiskConfig) ToYAML ¶
func (d *DiskConfig) ToYAML() (string, error)
ToYAML returns yaml representation of diskconfig
type DiskLocation ¶
type DiskLocation struct {
// contains filtered or unexported fields
}
type Disks ¶
type Disks struct { DevicePaths []string `json:"devicePaths,omitempty"` ForceWipeDevicesAndDestroyAllData bool `json:"forceWipeDevicesAndDestroyAllData,omitempty"` }
Disks defines disks to be used for local volumes
func (*Disks) DeviceIDs ¶
DeviceIDs returns devices which are specified by ids. For example - /dev/disk/by-id/abcde
func (*Disks) DeviceNames ¶
DeviceNames returns devices which are used by name. Such as - /dev/sda, /dev/xvdba
type FileSystemInterface ¶
type FileSystemInterface interface {
// contains filtered or unexported methods
}
type LocalVolumeReconciler ¶
type LocalVolumeReconciler struct { Client client.Client Scheme *runtime.Scheme // contains filtered or unexported fields }
func NewLocalVolumeReconciler ¶
func NewLocalVolumeReconciler(client client.Client, scheme *runtime.Scheme, symlinkLocation string, cleanupTracker *provDeleter.CleanupStatusTracker, rc *provCommon.RuntimeConfig) *LocalVolumeReconciler
func (*LocalVolumeReconciler) WithManager ¶
func (r *LocalVolumeReconciler) WithManager(mgr ctrl.Manager) error
type NixFileSystemInterface ¶
type NixFileSystemInterface struct { }
Click to show internal directories.
Click to hide internal directories.