common

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PVCNameKey contains name of the PVC for which is a volume provisioned.
	PVCNameKey = "csi.storage.k8s.io/pvc/name"

	// PVCNamespaceKey contains namespace of the PVC for which is a volume provisioned.
	PVCNamespaceKey = "csi.storage.k8s.io/pvc/namespace"

	// PVNameKey contains name of the final PV that will be used for the dynamically
	// provisioned volume
	PVNameKey = "csi.storage.k8s.io/pv/name"
)

constants of keys in volume parameters

View Source
const (
	VolumeSnapshotNamespaceKey = "csi.storage.k8s.io/volumesnapshot/namespace"
	VolumeSnapshotNameKey      = "csi.storage.k8s.io/volumesnapshot/name"
)

constants of keys in volume snapshot parameters

View Source
const (
	// PVCNameTag is tag applied to provisioned alibaba cloud disk for compatibility
	// with in-tree volume plugin. Value of the tag is PVC name. It is applied only when
	// the external provisioner sidecar is started with --extra-create-metadata=true and
	// thus provides such metadata to the CSI driver.
	PVCNameTag = "kubernetes.io/created-for/pvc/name"

	// PVCNamespaceTag is tag applied to provisioned alibaba cloud disk for compatibility
	// with in-tree volume plugin. Value of the tag is PVC namespace. It is applied only when
	// the external provisioner sidecar is started with --extra-create-metadata=true and
	// thus provides such metadata to the CSI driver.
	PVCNamespaceTag = "kubernetes.io/created-for/pvc/namespace"

	// PVNameTag is tag applied to provisioned alibaba cloud disk for compatibility
	// with in-tree volume plugin. Value of the tag is PV name. It is applied only when
	// the external provisioner sidecar is started with --extra-create-metadata=true and
	// thus provides such metadata to the CSI driver.
	PVNameTag = "kubernetes.io/created-for/pv/name"

	// VolumeNameTag is tag applied to provisioned alibaba cloud disk
	// Disk name have many restrictions, so we use this tag to store the original name
	VolumeNameTag = "csi.alibabacloud.com/volume-name"
)
View Source
const (
	VolumeSnapshotNameTag      = "csi.alibabacloud.com/snapshot/name"
	VolumeSnapshotNamespaceTag = "csi.alibabacloud.com/snapshot/namespace"
)

Tags that will be added to ECS snapshots

Variables

This section is empty.

Functions

func RunCSIServer

func RunCSIServer(endpoint string, ids csi.IdentityServer, cs csi.ControllerServer, ns csi.NodeServer)

func WrapControllerServerWithValidator

func WrapControllerServerWithValidator(server csi.ControllerServer) csi.ControllerServer

func WrapNodeServerWithValidator

func WrapNodeServerWithValidator(server csi.NodeServer) csi.NodeServer

Types

type ControllerServerWithValidator

type ControllerServerWithValidator struct {
	csi.ControllerServer
}

func (*ControllerServerWithValidator) ControllerExpandVolume

func (*ControllerServerWithValidator) ControllerPublishVolume

func (*ControllerServerWithValidator) ControllerUnpublishVolume

func (*ControllerServerWithValidator) CreateSnapshot

func (*ControllerServerWithValidator) CreateVolume

func (*ControllerServerWithValidator) DeleteSnapshot

func (*ControllerServerWithValidator) DeleteVolume

func (*ControllerServerWithValidator) ValidateVolumeCapabilities

type NodeServerWithValidator

type NodeServerWithValidator struct {
	csi.NodeServer
}

func (*NodeServerWithValidator) NodeExpandVolume

func (*NodeServerWithValidator) NodeGetVolumeStats

func (*NodeServerWithValidator) NodePublishVolume

func (*NodeServerWithValidator) NodeStageVolume

func (*NodeServerWithValidator) NodeUnpublishVolume

func (*NodeServerWithValidator) NodeUnstageVolume

Jump to

Keyboard shortcuts

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