Documentation ¶
Index ¶
- Constants
- Variables
- func ConfigurePrivilegedServiceAccount() error
- func CreateEventProxySidecar(nodeNameFull string) (err error)
- func CreateServiceSidecar() error
- func DeleteService(namespace, name string)
- func DeleteTestSidecarNamespace() error
- func Enable() bool
- func GetCloudEventProxyImageFromPod() (image string, err error)
- func InitPubSub()
- func MonitorPodLogsRegex() (term chan bool, err error)
- func PushInitialEvent(eventType string, timeout time.Duration) (err error)
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" ConsumerContainerName = "consumer" CustomerCloudEventProxyPort = 8089 ProviderCloudEventProxyPort = 9085 )
View Source
const DeleteBackground = "deleteBackground"
View Source
const DeleteForeground = "deleteForeground"
Variables ¶
View Source
var (
PubSub *chanpubsub.Pubsub
)
Functions ¶
func ConfigurePrivilegedServiceAccount ¶
func ConfigurePrivilegedServiceAccount() error
func CreateEventProxySidecar ¶
create ptp-events sidecar
func DeleteTestSidecarNamespace ¶
func DeleteTestSidecarNamespace() error
delete consumer sidecar pod and associated service
func GetCloudEventProxyImageFromPod ¶
gets the cloud-event-proxy sidecar image from the ptp-operator pods
func InitPubSub ¶
func InitPubSub()
func MonitorPodLogsRegex ¶
returns last Regex match in the logs for a given pod
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.