csi

package
v1.36.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 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 (
	// 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,
	}
	// 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 v1.PersistentVolumeClaimLister, params map[string]string) map[string]string

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

func GetPVCLister

func GetPVCLister() v1.PersistentVolumeClaimLister

Types

This section is empty.

Directories

Path Synopsis
openstack
Package openstack backups provides an implementation of Cinder Backup features cinder functions using Gophercloud.
Package openstack backups provides an implementation of Cinder Backup features cinder functions using Gophercloud.

Jump to

Keyboard shortcuts

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