event

package
v0.0.0-...-a74e115 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ConsumerSidecarTestNamespace = "ptp-event-framework-test"
	ProviderSidecarTestNamespace = "openshift-ptp"
	TestSidecarName              = "cloud-proxy-sidecar"
	TestSidecarContainerName     = "sidecar"
	TestSidecarSaName            = "sidecar-sa"
	TestServiceName              = "consumer-events-subscription-service"
	TestSidecarSuccessLogString  = "rest service returned healthy status"
	CustomerCloudEventProxyPort  = 8089
	ProviderCloudEventProxyPort  = 9085
)
View Source
const DeleteBackground = "deleteBackground"
View Source
const DeleteForeground = "deleteForeground"

Variables

This section is empty.

Functions

func ConfigurePrivilegedServiceAccount

func ConfigurePrivilegedServiceAccount() error

func CreateEventProxySidecar

func CreateEventProxySidecar(nodeName string) (err error)

create ptp-events sidecar

func CreateServiceSidecar

func CreateServiceSidecar() error

create ptp events consumer service

func DeleteService

func DeleteService(namespace, name string)

delete Service

func DeleteTestSidecarNamespace

func DeleteTestSidecarNamespace() error

delete consumer sidecar pod and associated service

func Enable

func Enable() bool

enables event if ptp event is required

func GetCloudEventProxyImageFromPod

func GetCloudEventProxyImageFromPod() (image string, err error)

gets the cloud-event-proxy sidecar image from the ptp-operator pods

func InitEvents

func InitEvents(fullConfig *testconfig.TestConfig, localHttpServerPort, localPortFoward int, useSideCar bool)

initialized the event listening framework to start listening for all supported events

func IsDeployConsumerSidecar

func IsDeployConsumerSidecar() (deployConsumerSidecar bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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