Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CSI Plugin Name CSIPluginName = "kubernetes.io/csi" DefaultKubeletPluginsDirName = "plugins" DefaultKubeletPodsDirName = "pods" DefaultKubeletVolumesDirName = "volumes" DefaultKubeletBlockVolumesDirName = "volumeDevices" DefaultEventIndexerName = "event-uid" DefaultRecoveryEventMessage = "The Volume returns to the healthy state" )
Variables ¶
View Source
var (
EnvNodeName = "NODE_NAME"
)
Functions ¶
func EscapeQualifiedName ¶
EscapeQualifiedName replace "/" with "~"
func GetVolumePath ¶
GetVolumePath generates volume path
func MakeDeviceMountPath ¶
func MakeDeviceMountPath(kubeletRootDir string, pv *v1.PersistentVolume) (string, error)
MakeDeviceMountPath generates device mount path
Types ¶
type PVCToPodsCache ¶
PVCToPodsCache stores PVCs/Pods mapping info we can get all pods using one specific PVC more efficiently by this
func NewPVCToPodsCache ¶
func NewPVCToPodsCache() *PVCToPodsCache
NewPVCToPodsCache creates a new PVCToPodsCache
func (*PVCToPodsCache) AddPod ¶
func (cache *PVCToPodsCache) AddPod(pod *v1.Pod)
TODO: support inline csi volumes
func (*PVCToPodsCache) DeletePod ¶
func (cache *PVCToPodsCache) DeletePod(pod *v1.Pod)
TODO: support inline csi volumes
func (*PVCToPodsCache) GetPodsByPVC ¶
func (cache *PVCToPodsCache) GetPodsByPVC(pvcNamespace, pvcName string) PodSet
Click to show internal directories.
Click to hide internal directories.