debug

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectArtifacts

func CollectArtifacts(client client.Client, fs afero.Fs, writer io.Writer, namespace, kubectlPath string) error

CollectArtifacts collects useful debugging artifacts from a given namespace. Should typically be called if CurrentGinkgoTestDescription().Failed, like this:

c, err := client.NewForConfig(KubeConfigPath)
if err != nil ...
debug.CollectArtifacts(c, afero.NewOsFs(), GinkgoWriter, TestNamespace, KubectlPath)

Note that this function emits encountered errors to the supplied writer, so there is only a need to inspect its return value only if the caller wants to take some action in addition to printing the error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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