core

package
v0.0.0-...-43d0de1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProvisionerNameDefault is the name of the default OCI volume provisioner (block)
	ProvisionerNameDefault = "oracle.com/oci"
	// ProvisionerNameBlock is the name of the OCI block volume provisioner
	ProvisionerNameBlock = "oracle.com/oci-block"
	// ProvisionerNameFss is the name of the OCI FSS dedicated storage provisioner
	ProvisionerNameFss = "oracle.com/oci-fss"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OCIProvisioner

type OCIProvisioner struct {
	// contains filtered or unexported fields
}

OCIProvisioner is a dynamic volume provisioner that satisfies the Kubernetes external storage Provisioner controller interface

func NewOCIProvisioner

func NewOCIProvisioner(logger *zap.SugaredLogger, kubeClient kubernetes.Interface, nodeInformer informersv1.NodeInformer, provisionerType string, nodeName string, volumeRoundingEnabled bool, minVolumeSize resource.Quantity) (*OCIProvisioner, error)

NewOCIProvisioner creates a new OCI provisioner.

func (*OCIProvisioner) Delete

func (p *OCIProvisioner) Delete(volume *v1.PersistentVolume) error

Delete removes the storage asset that was created by Provision represented by the given PV.

func (*OCIProvisioner) Provision

func (p *OCIProvisioner) Provision(options controller.VolumeOptions) (*v1.PersistentVolume, error)

Provision creates a storage asset and returns a PV object representing it.

func (*OCIProvisioner) Ready

func (p *OCIProvisioner) Ready(stopCh <-chan struct{}) error

Ready waits unitl the the nodeLister has been synced.

Jump to

Keyboard shortcuts

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