utils

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTestNamespace = "cni-automation"
	AwsNodeNamespace     = "kube-system"
	AwsNodeName          = "aws-node"
	AWSInitContainerName = "aws-vpc-cni-init"
	MultusNodeName       = "kube-multus-ds"
	MultusContainerName  = "kube-multus"

	// See https://gallery.ecr.aws/eks/aws-vpc-cni-test-helper
	TestAgentImage = "networking-e2e-test-images/aws-vpc-cni-test-helper:20231212"
	BusyBoxImage   = "networking-e2e-test-images/busybox:latest"
	NginxImage     = "networking-e2e-test-images/nginx:1.25.2"
	NetCatImage    = "networking-e2e-test-images/netcat-openbsd:v1.0"
	CurlImage      = "networking-e2e-test-images/curlimages/curl:latest"

	PollIntervalShort  = time.Second * 2
	PollIntervalMedium = time.Second * 5
	PollIntervalLong   = time.Second * 20

	DefaultDeploymentReadyTimeout = time.Second * 300
)

Variables

This section is empty.

Functions

func GetEnvValueForKeyFromDaemonSet

func GetEnvValueForKeyFromDaemonSet(key string, ds *appsV1.DaemonSet) string

func GetProjectRoot added in v1.13.0

func GetProjectRoot() string

func GetTestImage added in v1.13.2

func GetTestImage(registry string, image string) string

func NamespacedName

func NamespacedName(obj v1.Object) types.NamespacedName

NamespacedName returns the namespaced name for k8s objects

func NewGinkgoLogger

func NewGinkgoLogger() logr.Logger

NewGinkgoLogger returns new logger with ginkgo backend.

Types

This section is empty.

Jump to

Keyboard shortcuts

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