Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddToScheme ¶
AddToScheme is a function for extend the reporter scheme and the CRs we are able to dump
type CRData ¶
type CRData struct {
Cr runtimeclient.ObjectList
Namespace *string
}
CRData represents a cr to dump
type KubernetesReporter ¶
type KubernetesReporter struct {
sync.Mutex
// Timestamps prefixes each dumped pod log line with an RFC3339 timestamp.
Timestamps bool
// contains filtered or unexported fields
}
KubernetesReporter is a Ginkgo reporter that dumps info about configured kubernetes objects.
func New ¶
func New(kubeconfig string, addToScheme AddToScheme, namespaceToLog NamespaceFilter, reportPath string, crs ...CRData) (*KubernetesReporter, error)
New returns a new Kubernetes reporter from the given configuration.
func (*KubernetesReporter) Dump ¶
func (r *KubernetesReporter) Dump(duration time.Duration, dumpSubpath string)
Dump dumps the relevant crs + pod logs. duration represents how much in the past we need to go when fetching the pod logs. dumpSubpath is the subpath relative to reportPath where the reporter will dump the output.
type NamespaceFilter ¶
NamespaceFilter is a filter function to choose what namespaces to dump.
Click to show internal directories.
Click to hide internal directories.