namespaces

package
v0.0.0-...-9c5689a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BondTestNamespace = "bond-testing"
View Source
var Default = "default"

Default is the default namespace for resources

View Source
var DpdkTest string

DpdkTest is the namespace of dpdk test suite

View Source
var IntelOperator = "vran-acceleration-operators"

IntelOperator is the namespace where the intel Operators are installed

View Source
var MetalLBOperator = "openshift-metallb-system"

MetalLBOperator is the namespace where the MetalLB Operator is installed

View Source
var Multus = "openshift-multus"

Multus is the namespace where multus and multi-networkpolicy are installed

View Source
var OVSQOSTest string
View Source
var PTPOperator = "openshift-ptp"

PTPOperator is the namespace where the PTP Operator is installed

View Source
var SCTPTest string

SCTPTest is the namespace of the sctp test suite

View Source
var SRIOVOperator = "openshift-sriov-network-operator"

SRIOVOperator is the namespace where the SR-IOV Operator is installed

View Source
var SpecialResourceOperator = "openshift-special-resource-operator"

SpecialResourceOperator is the namespace where the SRO is installed

View Source
var SriovTuningTest = "tuningsriov-testing"

SriovTuingTest is the namespace used for testing feature related to both tuningcni and sriov

View Source
var SroTestNamespace = "oot-driver"

SroTestNamespace is the namespace where we run the oot driver builds as part of the sro testing

View Source
var TuningTest = "tuning-testing"

TuningTest is the namespace used for testing tuningcni features

Functions

func AddPSALabelsToNamespace

func AddPSALabelsToNamespace(namespace string, cs corev1client.NamespacesGetter) error

func Clean

func Clean(namespace string, prefix string, cs *testclient.ClientSet) error

Clean cleans all dangling objects from the given namespace.

func CleanPods

func CleanPods(namespace string, cs NamespacesAndPods)

CleanPods deletes all pods in namespace

func CleanPodsIn

func CleanPodsIn(cs NamespacesAndPods, namespaces ...string)

CleanPodsIn deletes all pods in the given namespace list

func Create

func Create(namespace string, cs corev1client.NamespacesGetter) error

Create creates a new namespace with the given name. If the namespace exists, it returns.

func Delete

func Delete(namespace string, cs *testclient.ClientSet) error

Delete deletes a namespace with the given name, and waits for it's deletion. If the namespace not found, it returns.

func Exists

func Exists(namespace string, cs corev1client.NamespacesGetter) bool

Exists tells whether the given namespace exists

func GetPSALabels

func GetPSALabels() map[string]string

func WaitForDeletion

func WaitForDeletion(cs corev1client.NamespacesGetter, nsName string, timeout time.Duration) error

WaitForDeletion waits until the namespace will be removed from the cluster

Types

type NamespacesAndPods

type NamespacesAndPods interface {
	Namespaces() corev1client.NamespaceInterface
	Pods(namespace string) corev1client.PodInterface
}

Jump to

Keyboard shortcuts

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