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.
Click to show internal directories.
Click to hide internal directories.