Documentation ¶
Overview ¶
Package utils contails utilities useful in the context of E2E tests.
Index ¶
- func CreateKustomizationOverlay(namespace, base, overlay string) error
- func DeployWebhook(f *framework.Framework, kustomizationPath string) v1.Pod
- func LocateRepoFile(repopath string) (string, error)
- func TestContainersRunAsNonRoot(pods []v1.Pod) error
- func TestPodsFileSystemInfo(pods []v1.Pod) error
- func WaitForNodesWithResource(c clientset.Interface, res v1.ResourceName, timeout time.Duration) error
- func WaitForPodFailure(f *framework.Framework, name string, timeout time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKustomizationOverlay ¶ added in v0.18.0
CreateKustomizationOverlay creates an overlay with overridden namespace.
func DeployWebhook ¶ added in v0.22.0
DeployWebhook deploys an admission webhook to a framework-specific namespace.
func LocateRepoFile ¶
LocateRepoFile locates a file inside this repository.
func TestContainersRunAsNonRoot ¶ added in v0.22.0
TestContainersRunAsNonRoot checks that all containers within the Pods run with non-root UID/GID.
func TestPodsFileSystemInfo ¶ added in v0.22.0
TestPodsFileSystemInfo checks that all containers within the Pods run with ReadOnlyRootFileSystem. It also prints RW volume mounts.
func WaitForNodesWithResource ¶
func WaitForNodesWithResource(c clientset.Interface, res v1.ResourceName, timeout time.Duration) error
WaitForNodesWithResource waits for nodes to have positive allocatable resource.
func WaitForPodFailure ¶ added in v0.18.0
WaitForPodFailure waits for a pod to fail. This function used to be a part of k8s e2e framework, but was deleted in https://github.com/kubernetes/kubernetes/pull/86732.
Types ¶
This section is empty.