Documentation ¶
Index ¶
- Variables
- func AddPSALabelsToNamespace(namespace string, cs corev1client.NamespacesGetter) error
- func Clean(namespace string, prefix string, cs *testclient.ClientSet) error
- func CleanPods(namespace string, cs NamespacesAndPods)
- func CleanPodsIn(cs NamespacesAndPods, namespaces ...string)
- func Create(namespace string, cs corev1client.NamespacesGetter) error
- func Delete(namespace string, cs *testclient.ClientSet) error
- func Exists(namespace string, cs corev1client.NamespacesGetter) bool
- func GetPSALabels() map[string]string
- func WaitForDeletion(cs corev1client.NamespacesGetter, nsName string, timeout time.Duration) error
- type NamespacesAndPods
Constants ¶
This section is empty.
Variables ¶
var BondTestNamespace = "bond-testing"
var Default = "default"
Default is the default namespace for resources
var DpdkTest string
DpdkTest is the namespace of dpdk test suite
var IntelOperator = "vran-acceleration-operators"
IntelOperator is the namespace where the intel Operators are installed
var MetalLBOperator = "openshift-metallb-system"
MetalLBOperator is the namespace where the MetalLB Operator is installed
var Multus = "openshift-multus"
Multus is the namespace where multus and multi-networkpolicy are installed
var OVSQOSTest string
var PTPOperator = "openshift-ptp"
PTPOperator is the namespace where the PTP Operator is installed
var SCTPTest string
SCTPTest is the namespace of the sctp test suite
var SRIOVOperator = "openshift-sriov-network-operator"
SRIOVOperator is the namespace where the SR-IOV Operator is installed
var SpecialResourceOperator = "openshift-special-resource-operator"
SpecialResourceOperator is the namespace where the SRO is installed
var SriovTuningTest = "tuningsriov-testing"
SriovTuingTest is the namespace used for testing feature related to both tuningcni and sriov
var SroTestNamespace = "oot-driver"
SroTestNamespace is the namespace where we run the oot driver builds as part of the sro testing
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 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 }