resizer

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL