package
0.0.0-20191024030528-a481964b876e
Repository: https://github.com/divinerapier/learn-kubernetes.git
Documentation: pkg.go.dev

# Functions

CheckReadFromPath validate that file can be properly read.
CheckReadWriteToPath check that path can b e read and written.
CheckVolumeModeOfPath check mode of volume.
CheckWriteToPath that file can be properly written.
KubeletCommand performs `start`, `restart`, or `stop` on the kubelet running on the node of the target pod and waits for the desired statues.
NewHostExec returns a HostExec.
NewLocalResourceManager returns a instance of LocalTestResourceManager.
PatchCSIDeployment modifies the CSI driver deployment: - replaces the provisioner name - forces pods onto a specific host All of that is optional, see PatchCSIOptions.
PodExec wraps RunKubectl to execute a bash cmd in target pod.
PrivilegedTestPSPClusterRoleBinding test Pod Security Policy Role bindings.
RunInPodWithVolume runs a command in a pod with given claim mounted to /mnt directory.
SIGDescribe annotates the test with the SIG label.
StartExternalProvisioner create external provisioner pod.
TestKubeletRestartsAndRestoresMap tests that a volume mapped to a pod remains mapped after a kubelet restarts.
TestKubeletRestartsAndRestoresMount tests that a volume mounted to a pod remains mounted after a kubelet restarts.
TestVolumeUnmapsFromDeletedPod tests that a volume unmaps if the client pod was deleted while the kubelet was down.
TestVolumeUnmapsFromDeletedPodWithForceOption tests that a volume unmaps if the client pod was deleted while the kubelet was down.
TestVolumeUnmapsFromForceDeletedPod tests that a volume unmaps if the client pod was forcefully deleted while the kubelet was down.
TestVolumeUnmountsFromDeletedPod tests that a volume unmounts if the client pod was deleted while the kubelet was down.
TestVolumeUnmountsFromDeletedPodWithForceOption tests that a volume unmounts if the client pod was deleted while the kubelet was down.
TestVolumeUnmountsFromForceDeletedPod tests that a volume unmounts if the client pod was forcefully deleted while the kubelet was down.
VerifyExecInPodFail verifies bash cmd in target pod fail with certain exit code.
VerifyExecInPodSucceed verifies bash cmd in target pod succeed.

# Constants

KRestart defines restart value.
KStart defines start value.
KStop defines stop value.
LocalVolumeBlock represents a Block device, creates a local file, and maps it as a block device.
LocalVolumeBlockFS represents a filesystem backed by a block device.
LocalVolumeDirectory reprensents a simple directory as local volume.
LocalVolumeDirectoryBindMounted is like LocalVolumeDirectory but bind mounted.
LocalVolumeDirectoryLink is like LocalVolumeDirectory but it's a symbolic link to directory.
LocalVolumeDirectoryLinkBindMounted is like LocalVolumeDirectory but it's a symbolic link to self bind mounted directory Note that bind mounting at symbolic link actually mounts at directory it links to.
LocalVolumeGCELocalSSD represents a Filesystem backed by GCE Local SSD as local volume.
LocalVolumeTmpfs represents a temporary filesystem to be used as local volume.
NodeStateTimeout defines Timeout.

# Structs

LocalTestResource represents test resource of a local volume.
PatchCSIOptions controls how PatchCSIDeployment patches the objects.

# Interfaces

HostExec represents interface we require to execute commands on remote host.
LocalTestResourceManager represents interface to create/destroy local test resources on node.

# Type aliases

KubeletOpt type definition.
LocalVolumeType represents type of local volume, e.g.