logstream

package
Version: v0.0.0-...-1b19c93 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(spec PodSpec, coreInterface kubernetes.Interface) error

Cleanup terminates the dummy pod

func DeployDummyPod

func DeployDummyPod(spec PodSpec, coreInterface kubernetes.Interface) error

DeployDummyPod deploys a pod which keeps logging a counter

func Test

func Test(domain, authHeader, logPrefix string, labelsToSelect map[string]string, httpClient *http.Client) error

Test querys loki api with the given label key-value pair and checks that the logs of the dummy pod are present

func WaitForDummyPodToRun

func WaitForDummyPodToRun(spec PodSpec, coreInterface kubernetes.Interface) error

WaitForDummyPodToRun waits until the dummy pod is running

Types

type PodSpec

type PodSpec struct {
	PodName       string
	ContainerName string
	Namespace     string
	LogPrefix     string
}

PodSpec represents a test logging pod configuration

Source Files

Jump to

Keyboard shortcuts

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