Documentation ¶
Index ¶
- func CreateVolumeSpec(podVolume v1.Volume, podNamespace string, ...) (*volume.Spec, error)
- func DetermineVolumeAction(pod *v1.Pod, desiredStateOfWorld cache.DesiredStateOfWorld, defaultAction bool) bool
- func ProcessPodVolumes(pod *v1.Pod, addVolumes bool, desiredStateOfWorld cache.DesiredStateOfWorld, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateVolumeSpec ¶
func CreateVolumeSpec(podVolume v1.Volume, podNamespace string, pvcLister corelisters.PersistentVolumeClaimLister, pvLister corelisters.PersistentVolumeLister) (*volume.Spec, error)
CreateVolumeSpec creates and returns a mutatable volume.Spec object for the specified volume. It dereference any PVC to get PV objects, if needed.
func DetermineVolumeAction ¶
func DetermineVolumeAction(pod *v1.Pod, desiredStateOfWorld cache.DesiredStateOfWorld, defaultAction bool) bool
DetermineVolumeAction returns true if volume and pod needs to be added to dswp and it returns false if volume and pod needs to be removed from dswp
func ProcessPodVolumes ¶
func ProcessPodVolumes(pod *v1.Pod, addVolumes bool, desiredStateOfWorld cache.DesiredStateOfWorld, volumePluginMgr *volume.VolumePluginMgr, pvcLister corelisters.PersistentVolumeClaimLister, pvLister corelisters.PersistentVolumeLister)
ProcessPodVolumes processes the volumes in the given pod and adds them to the desired state of the world if addVolumes is true, otherwise it removes them.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.