state_dump_utils

package
v1.18.4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CISystemDumpOnFail

func CISystemDumpOnFail(_ context.Context, _ *kubectl.Cli, _ io.Writer, outDir string,
	_ []string) func()

CISystemDumpOnFail creates a small dump of the local docker and process state. This is useful for debugging test failures in CI. The dump includes: - docker state - process state

func ControllerDumpOnFail

func ControllerDumpOnFail(ctx context.Context, kubectlCli *kubectl.Cli, _ io.Writer,
	outDir string, namespaces []string) func()

ControllerDumpOnFail creates a small dump of the gloo controller state. This is useful for debugging failures. The dump includes: - controller logs - controller metrics - controller xds snapshot - controller krt snapshot

func EnvoyDumpOnFail

func EnvoyDumpOnFail(ctx context.Context, kubectlCli *kubectl.Cli, _ io.Writer, outDir string, namespaces []string) func()

EnvoyDumpOnFail creates a small dump of the envoy admin interface. This is useful for debugging failures. The dump includes: - config dump - stats - clusters - listeners

func KubeDumpOnFail

func KubeDumpOnFail(ctx context.Context, _ *kubectl.Cli, _ io.Writer, outDir string,
	namespaces []string) func()

KubeDumpOnFail creates a small dump of the kubernetes state. This is useful for debugging failures. The dump includes: - kubernetes cluster state - logs from all pods in the given namespaces - yaml representations of all solo.io CRs in the given namespaces

func StandardCIDumpOnFail

func StandardCIDumpOnFail(outLog io.Writer, outDir string, namespaces []string) func()

StandardCIDumpOnFail creates a dump of the CI system state, kubernetes state, gloo controller state, and certain envoy data from the admin interface when a test fails. Look at `CISystemDumpOnFail`, `KubeDumpOnFail`, `ControllerDumpOnFail`, && `EnvoyDumpOnFail` for more details

Types

This section is empty.

Jump to

Keyboard shortcuts

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