Documentation ¶
Index ¶
Constants ¶
View Source
const O_CREATE = os.O_CREATE
View Source
const O_WRONLY = os.O_WRONLY
View Source
const (
// StorageClass is the name of StorageClass. It is set to pv.spec.storageClassName.
StorageClass = "local-storage"
)
Variables ¶
This section is empty.
Functions ¶
func NewDeviceDetector ¶
func NewDeviceDetector(client client.Client, reader client.Reader, log logr.Logger, nodeName string, interval time.Duration, scheme *runtime.Scheme, deleter Deleter, defaultPVSpecConfigMap, workingNamespace string) manager.Runnable
NewDeviceDetector creates a new DeviceDetector.
Types ¶
type DeviceDetector ¶
DeviceDetector monitors local devices.
type FillDeleter ¶
FillDeleter fills first 100MByte with '\0'
func (*FillDeleter) Delete ¶
func (d *FillDeleter) Delete(path string) error
Delete implements Deleter's method.
type PersistentVolumeReconciler ¶
PersistentVolumeReconciler reconciles a local PersistentVolume
func (*PersistentVolumeReconciler) Reconcile ¶
func (r *PersistentVolumeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile cleans up released local PV
func (*PersistentVolumeReconciler) SetupWithManager ¶
func (r *PersistentVolumeReconciler) SetupWithManager(mgr ctrl.Manager, nodeName string) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.