recyclerclient

package
v1.14.10 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecycleVolumeByWatchingPodUntilCompletion

func RecycleVolumeByWatchingPodUntilCompletion(pvName string, pod *v1.Pod, kubeClient clientset.Interface, recorder RecycleEventRecorder) error

RecycleVolumeByWatchingPodUntilCompletion is intended for use with volume Recyclers. This function will save the given Pod to the API and watch it until it completes, fails, or the pod's ActiveDeadlineSeconds is exceeded, whichever comes first. An attempt to delete a recycler pod is always attempted before returning.

In case there is a pod with the same namespace+name already running, this function deletes it as it is not able to judge if it is an old recycler or user has forged a fake recycler to block Kubernetes from recycling.//

 pod - the pod designed by a volume plugin to recycle the volume. pod.Name
       will be overwritten with unique name based on PV.Name.
	client - kube client for API operations.

Types

type RecycleEventRecorder

type RecycleEventRecorder func(eventtype, message string)

Jump to

Keyboard shortcuts

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