sidecarlogresults

package
v0.59.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSizeExceeded = errors.New("results size exceeds configured limit")

ErrSizeExceeded indicates that the result exceeded its maximum allowed size

Functions

func ExtractStepAndResultFromSidecarResultName added in v0.54.0

func ExtractStepAndResultFromSidecarResultName(sidecarResultName string) (string, string, error)

ExtractStepAndResultFromSidecarResultName splits the result name to extract the step and result name from it. It only works if the format is <stepName>.<resultName>

func GetResultsFromSidecarLogs

func GetResultsFromSidecarLogs(ctx context.Context, clientset kubernetes.Interface, namespace string, name string, container string, podPhase corev1.PodPhase) ([]result.RunResult, error)

GetResultsFromSidecarLogs extracts results from the logs of the results sidecar

func LookForResults

func LookForResults(w io.Writer, runDir string, resultsDir string, resultNames []string, stepResultsDir string, stepResults map[string][]string) error

LookForResults waits for results to be written out by the steps in their results path and prints them in a structured way to its stdout so that the reconciler can parse those logs.

Types

type SidecarLogResult

type SidecarLogResult struct {
	Name  string               `json:"name"`
	Value string               `json:"value"`
	Type  SidecarLogResultType `json:"type"`
}

SidecarLogResult holds fields for storing extracted results

type SidecarLogResultType added in v0.54.0

type SidecarLogResultType string

Jump to

Keyboard shortcuts

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