sternmultitailer

package
v1.28.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package sternmultitailer handle the logs of every pod in the tests saving them in a structured way within a directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StreamLogs

func StreamLogs(
	ctx context.Context,
	client kubernetes.Interface,
	labelSelector labels.Selector,
	outputBaseDir string,
) chan struct{}

StreamLogs opens a goroutine to execute stern on all the pods that match the labelSelector. Their logs will be written to disk in the outputBaseDir, split by namespace, pod and container, using a namespace/pod/container.log file for each container of matching pods. Close the ctx context to terminate stern execution. Returns a channel that will be closed when all the logs have been written to disk and the ones we asked to remove have been deleted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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