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