plugin

package
v1.27.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OCIProvisionerName is the name of the provisioner defined in the storage class definitions
	OCIProvisionerName = "oracle/oci"
	// LabelZoneFailureDomain the availability domain in which the PD resides.
	LabelZoneFailureDomain = "failure-domain.beta.kubernetes.io/zone"
	// LabelZoneRegion the region in which the PD resides.
	LabelZoneRegion = "failure-domain.beta.kubernetes.io/region"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ProvisionerPlugin

type ProvisionerPlugin interface {
	// Provision creates a volume i.e. the storage asset and returns a PV object
	// for the volume
	Provision(controller.ProvisionOptions, *identity.AvailabilityDomain) (*v1.PersistentVolume, error)
	// Delete removes the storage asset that was created by Provision backing the
	// given PV. Does not delete the PV object itself.
	//
	// May return IgnoredError to indicate that the call has been ignored and no
	// action taken.
	Delete(*v1.PersistentVolume) error
}

ProvisionerPlugin implements the controller plugin plus some extras that are common

Jump to

Keyboard shortcuts

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