framework

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Running           = "Running"
	Pending           = "Pending"
	Completed         = "Completed"
	ContainerCreating = "ContainerCreating"
	PodInitializing   = "PodInitializing"
	Terminating       = "Terminating"
	Initing           = "Initing"
)

Variables

This section is empty.

Functions

func GetPodHtbQosPara added in v1.10.0

func GetPodHtbQosPara(podName, podNamespace string) (string, string, error)

func GetPodNetemQosPara added in v1.10.0

func GetPodNetemQosPara(podName, podNamespace string) (netemQos, error)

Types

type Framework

type Framework struct {
	BaseName         string
	KubeOvnNamespace string
	KubeClientSet    kubernetes.Interface
	OvnClientSet     clientset.Interface
	KubeConfig       *rest.Config
}

func NewFramework

func NewFramework(baseName, kubeConfig string) *Framework

func (*Framework) ExecToPodThroughAPI

func (f *Framework) ExecToPodThroughAPI(command, containerName, podName, namespace string, stdin io.Reader) (string, string, error)

func (*Framework) GetName

func (f *Framework) GetName() string

func (*Framework) WaitDeploymentReady

func (f *Framework) WaitDeploymentReady(deployment, namespace string) error

func (*Framework) WaitPodDeleted

func (f *Framework) WaitPodDeleted(pod, namespace string) error

func (*Framework) WaitPodReady

func (f *Framework) WaitPodReady(pod, namespace string) (*corev1.Pod, error)

func (*Framework) WaitProviderNetworkReady added in v1.7.1

func (f *Framework) WaitProviderNetworkReady(providerNetwork string) error

func (*Framework) WaitStatefulsetReady

func (f *Framework) WaitStatefulsetReady(statefulset, namespace string) error

func (*Framework) WaitSubnetReady

func (f *Framework) WaitSubnetReady(subnet string) error

Jump to

Keyboard shortcuts

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