Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resizer ¶
type Resizer interface { // Name returns the resizer's name. Name() string // CanSupport returns true if resizer supports resize operation of this PV // with its corresponding PVC. CanSupport(pv *v1.PersistentVolume, pvc *v1.PersistentVolumeClaim) bool // Resize executes the resize operation of this PV. Resize(pv *v1.PersistentVolume, requestSize resource.Quantity) (newSize resource.Quantity, fsResizeRequired bool, err error) }
Resizer is responsible for handling pvc resize requests.
func NewResizer ¶
func NewResizer( address string, timeout time.Duration, k8sClient kubernetes.Interface, informerFactory informers.SharedInformerFactory) (Resizer, error)
NewResizer creates a new resizer responsible for resizing CSI volumes.
func NewResizerFromClient ¶ added in v0.2.0
func NewResizerFromClient( csiClient csi.Client, timeout time.Duration, k8sClient kubernetes.Interface, informerFactory informers.SharedInformerFactory) (Resizer, error)
Click to show internal directories.
Click to hide internal directories.