csi

package
v1.35.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// https://github.com/kubernetes-csi/external-snapshotter/pull/375
	VolSnapshotNameKey        = "csi.storage.k8s.io/volumesnapshot/name"
	VolSnapshotNamespaceKey   = "csi.storage.k8s.io/volumesnapshot/namespace"
	VolSnapshotContentNameKey = "csi.storage.k8s.io/volumesnapshotcontent/name"
	// https://github.com/kubernetes-csi/external-provisioner/pull/399
	PvcNameKey      = "csi.storage.k8s.io/pvc/name"
	PvcNamespaceKey = "csi.storage.k8s.io/pvc/namespace"
	PvNameKey       = "csi.storage.k8s.io/pv/name"
	// https://github.com/kubernetes/kubernetes/pull/79983
	VolEphemeralKey = "csi.storage.k8s.io/ephemeral"
)

Variables

View Source
var (
	// RecognizedCSISnapshotterParams Recognized volume parameters passed by Kubernetes csi-snapshotter sidecar
	// when run with --extra-create-metadata flag. These are added to metadata
	// of newly created snapshots if present.
	RecognizedCSISnapshotterParams = []string{
		VolSnapshotNameKey,
		VolSnapshotNamespaceKey,
		VolSnapshotContentNameKey,
	}
	// RecognizedCSIProvisionerParams Recognized volume parameters passed by Kubernetes csi-provisioner sidecar
	// when run with --extra-create-metadata flag. These are added to metadata
	// of newly created shares if present.
	RecognizedCSIProvisionerParams = []string{
		PvcNameKey,
		PvcNamespaceKey,
		PvNameKey,
	}
)

Functions

func AddPVCFlags

func AddPVCFlags(cmd *cobra.Command)

func GetAZFromTopology

func GetAZFromTopology(topologyKey string, requirement *csi.TopologyRequirement) string

func GetPVCAnnotations

func GetPVCAnnotations(pvcLister corev1.PersistentVolumeClaimLister, params map[string]string) map[string]string

GetPVCAnnotations returns PVC annotations for the given PVC name and namespace stored in the params map.

Types

This section is empty.

Directories

Path Synopsis
mount
Package mount is a generated GoMock package.
Package mount is a generated GoMock package.

Jump to

Keyboard shortcuts

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