utils

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package utils contails utilities useful in the context of E2E tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKustomizationOverlay added in v0.18.0

func CreateKustomizationOverlay(namespace, base, overlay string) error

CreateKustomizationOverlay creates an overlay with overridden namespace.

func DeployFpgaWebhook added in v0.18.0

func DeployFpgaWebhook(f *framework.Framework, kustomizationPath string)

DeployFpgaWebhook deploys FPGA admission webhook to a framework-specific namespace.

func LocateRepoFile

func LocateRepoFile(repopath string) (string, error)

LocateRepoFile locates a file inside this repository.

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

func WaitForPodFailure(f *framework.Framework, name string, timeout time.Duration)

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.

Jump to

Keyboard shortcuts

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