e2eutils

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDeployment

func CreateDeployment(client clientset.Interface, namespace *v1.Namespace, cmd string) *apps.Deployment

CreateDeployment create a deployement

func CreateSvc

func CreateSvc(client clientset.Interface, namespace *v1.Namespace, additional map[string]string) *v1.Service

CreateSvc create an svc

func DeleteDeployment

func DeleteDeployment(client clientset.Interface, namespace *v1.Namespace, deployment *apps.Deployment)

DeleteDeployment delete a Deployment

func DeleteSvc

func DeleteSvc(client clientset.Interface, namespace *v1.Namespace, svc *v1.Service)

DeleteSvc delete an svc

func ElbAPI

func ElbAPI() (osc.LoadBalancer, error)

ElbAPI instanciate elb service

func GetLb

GetLb describe an LB

func GetSvc

func GetSvc(client clientset.Interface, namespace *v1.Namespace, name string) (result *v1.Service)

GetSvc return an svc

func ListDeployment

func ListDeployment(client clientset.Interface, namespace *v1.Namespace)

ListDeployment list deployement

func ListSvc

func ListSvc(client clientset.Interface, namespace *v1.Namespace)

ListSvc list and svc

func RemoveLbInst

func RemoveLbInst(elb osc.LoadBalancer, lbName string, lbInstances []*elbApi.Instance) error

RemoveLbInst remove instance from lb

func UpdateSvcPorts

func UpdateSvcPorts(client clientset.Interface, namespace *v1.Namespace, service *v1.Service, port v1.ServicePort) *v1.Service

UpdateSvcPorts update an svc

func WaitForDeletedSvc

func WaitForDeletedSvc(client clientset.Interface, namespace *v1.Namespace, svc *v1.Service)

WaitForDeletedSvc waits for an svc to be deleted

func WaitForDeployementReady

func WaitForDeployementReady(client clientset.Interface, namespace *v1.Namespace, deployment *apps.Deployment)

WaitForDeployementReady wait for a Deployement

func WaitForSvc

func WaitForSvc(client clientset.Interface, namespace *v1.Namespace, svc *v1.Service)

WaitForSvc wait for an svc to be ready

Types

This section is empty.

Jump to

Keyboard shortcuts

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