Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureNamespaceExists ¶
func EnsureNamespaceExists(namespace *corev1api.Namespace, client corev1client.NamespaceInterface) (bool, error)
EnsureNamespaceExists attempts to create the provided Kubernetes namespace. It returns two values: a bool indicating whether or not the namespace was created, and an error if the create failed for a reason other than that the namespace already exists. Note that in the case where the namespace already exists, this function will return (false, nil).
func GetVolumeDirectory ¶
func GetVolumeDirectory(pod *corev1api.Pod, volumeName string, pvcLister corev1listers.PersistentVolumeClaimLister) (string, error)
GetVolumeDirectory gets the name of the directory on the host, under /var/lib/kubelet/pods/<podUID>/volumes/, where the specified volume lives.
func NamespaceAndName ¶
NamespaceAndName returns a string in the format <namespace>/<name>
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.