Documentation
¶
Overview ¶
Package logs exports helper functions for storing logs from containers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterDump ¶ added in v1.10.0
func ClusterDump(suiteName, testName string)
ClusterDump saves logs from all pods in specified namespaces
Types ¶
type Config ¶
type Config struct { ArtifactsDir string `default:"logs" desc:"Directory for storing container logs" envconfig:"ARTIFACTS_DIR"` Timeout time.Duration `default:"10s" desc:"Context timeout for kubernetes queries" split_words:"true"` WorkerCount int `default:"8" desc:"Number of log collector workers" split_words:"true"` MaxKubeConfigs int `default:"3" desc:"Number of used kubeconfigs" split_words:"true"` AllowedNamespaces string `default:"(ns-.*)|(nsm-system)|(spire)|(observability)" desc:"Regex of allowed namespaces" split_words:"true"` AllowedContainers string `default:"(nsc-.*)|(nse-.*)" desc:"Regexp of allowed docker containers" split_words:"true"` LogCollectionEnabled bool `default:"true" desc:"Boolean variable which enables log collection" split_words:"true"` }
Config is env config to setup log collecting.
Click to show internal directories.
Click to hide internal directories.