package
1.11.0-alpha.0
Repository: https://github.com/astefanutti/kubernetes.git
Documentation: pkg.go.dev
# Packages
Package nestedpendingoperations is a modified implementation of
pkg/util/goroutinemap.
Package operationexecutor implements interfaces that enable execution of attach, detach, mount, and unmount operations with a nestedpendingoperations so that more than one operation is never triggered on the same volume for the same pod.
Package types defines types used only by volume components.
Package volumehelper contains consts and helper methods used by various volume components (attach/detach controller, kubelet, etc.).
# Functions
CheckNodeAffinity looks at the PV node affinity, and checks if the node has the same corresponding labels This ensures that we don't mount a volume that doesn't belong to this node.
ClaimToClaimKey return namespace/name string for pvc.
No description provided by the author
Find uses the equivalent of the command `find <path> -dev -printf '.' | wc -c` to count files and directories.
FSInfo linux returns (available bytes, byte capacity, byte usage, total inodes, inodes free, inode usage, error) for the filesystem that path resides upon.
No description provided by the author
GetSecretForPod locates secret by name in the pod's namespace and returns secret map.
GetSecretForPV locates secret by name and namespace, verifies the secret type, and returns secret map.
IsReady checks for the existence of a regular file called 'ready' in the given directory and returns true if that file exists.
LabelZonesToSet converts a PV label value from string containing a delimited list of zones to set.
LoadPodFromFile will read, decode, and return a Pod from a file.
MarkFSResizeFinished marks file system resizing as done.
MergeResizeConditionOnPVC updates pvc with requested resize conditions leaving other conditions untouched.
NewAtomicWriter creates a new AtomicWriter configured to write to the given target directory, or returns an error if the target directory does not exist.
NewBlockVolumePathHandler returns a new instance of BlockVolumeHandler.
No description provided by the author
NewDeviceHandler Create a new IoHandler implementation.
NewIOHandler Create a new IoHandler implementation.
OperationCompleteHook returns a hook to call when an operation is completed.
PatchPVCStatus updates PVC status using PATCH verb.
PathExists returns true if the specified path exists.
SetReady creates a file called 'ready' in the given directory.
UnmountMountPoint is a common unmount routine that unmounts the given path and deletes the remaining directory if successful.
UnmountPath is a common unmount routine that unmounts the given path and deletes the remaining directory if successful.
No description provided by the author
ZonesToSet converts a string containing a comma separated list of zones to set.
# Constants
No description provided by the author
No description provided by the author
Name of finalizer on PVCs that have a running pod.
Name of finalizer on PVs that are bound by PVCs.
# Structs
AtomicWriter handles atomically projecting content for a set of files into a target directory.
This error on attach indicates volume is attached to a different node than we expected.
No description provided by the author
VolumePathHandler is path related operation handlers for block volume.
# Interfaces
BlockVolumePathHandler defines a set of operations for handling block volume-related operations.
DeviceUtil is a util for common device methods.
IoUtil is a mockable util for common IO operations.