Documentation ¶
Index ¶
- Constants
- func Clean(operatorNamespace, namespace string, cs *testclient.ClientSet, ...) error
- func CleanNetworks(operatorNamespace string, cs *testclient.ClientSet) error
- func CleanPods(namespace string, cs *testclient.ClientSet) error
- func CleanPolicies(operatorNamespace string, cs *testclient.ClientSet) error
- func Create(namespace string, cs *testclient.ClientSet) error
- func DeleteAndWait(cs *testclient.ClientSet, namespace string, timeout time.Duration) error
- func Exists(namespace string, cs *testclient.ClientSet) bool
- func WaitForDeletion(cs *testclient.ClientSet, nsName string, timeout time.Duration) error
Constants ¶
View Source
const Test = "sriov-conformance-testing"
Test is the namespace to be use for testing
Variables ¶
This section is empty.
Functions ¶
func Clean ¶
func Clean(operatorNamespace, namespace string, cs *testclient.ClientSet, discoveryEnabled bool) error
Clean cleans all dangling objects from the given namespace.
func CleanNetworks ¶
func CleanNetworks(operatorNamespace string, cs *testclient.ClientSet) error
CleanNetworks deletes all network in operatorNamespace
func CleanPods ¶
func CleanPods(namespace string, cs *testclient.ClientSet) error
CleanPods deletes all pods in namespace
func CleanPolicies ¶
func CleanPolicies(operatorNamespace string, cs *testclient.ClientSet) error
CleanPolicies deletes all SriovNetworkNodePolicies in operatorNamespace
func Create ¶
func Create(namespace string, cs *testclient.ClientSet) error
Create creates a new namespace with the given name. If the namespace exists, it returns.
func DeleteAndWait ¶
DeleteAndWait deletes a namespace and waits until it is deleted
func Exists ¶
func Exists(namespace string, cs *testclient.ClientSet) bool
Exists tells whether the given namespace exists
func WaitForDeletion ¶
WaitForDeletion waits until the namespace will be removed from the cluster
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.