package util
import "k8s.io/kubernetes/pkg/controller/volume/attachdetach/util"
Index ¶
- func CreateVolumeSpec(podVolume v1.Volume, podNamespace string, pvcLister corelisters.PersistentVolumeClaimLister, pvLister corelisters.PersistentVolumeLister) (*volume.Spec, error)
- func ProcessPodVolumes(pod *v1.Pod, addVolumes bool, desiredStateOfWorld cache.DesiredStateOfWorld, volumePluginMgr *volume.VolumePluginMgr, pvcLister corelisters.PersistentVolumeClaimLister, pvLister corelisters.PersistentVolumeLister)
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 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.
Source Files ¶
util.go
- Version
- v1.6.9-beta.0
- Published
- Aug 3, 2017
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 23 seconds ago –
Tools for package owners.