dump

package
v0.0.0-...-9fc8b42 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: UPL-1.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateReportArchive

func CreateReportArchive(captureDir string, archiveFilePath string) error

CreateReportArchive creates the .tar.gz file specified by the archiveFile from the files in captureDir e

func Dump

func Dump(o Options) error

Dump the cluster

Types

type Options

type Options struct {
	// KubeConfigPath is the path to the optional kubeconfig file
	KubeConfigPath string

	// CuratedResources true will dump resource manifests, except Secrets and ConfigMaps
	CuratedResources bool

	// NodeDumpForClusterInfo dumps a subset of node info if true
	NodeDumpForClusterInfo bool

	// IncludeConfigMap true will dump ConfigMaps
	IncludeConfigMap bool

	// SkipPodLogs true will skip pod logs
	SkipPodLogs bool

	// SkipCluster true means to show the details of the cluster
	SkipCluster bool

	// SkipNodes true means to show the details of each node
	SkipNodes bool

	// SkipRedact true mean skip redaction of cluster and node data
	SkipRedact bool

	// NodeNames are the names of the nodes to dump
	NodeNames []string

	// Namespaces are the names of the namespaces to dump
	Namespaces []string

	// Output directory for the dump.  Must be empty or not exist
	OutDir string

	// Quiet means don't log cluster dump info
	Quiet bool

	// ArchiveFile is the file path of the archive file that will be generated
	ArchiveFile string

	// Managed determines whether the managedField metadata is dumped with a resource
	Managed bool

	// JSON determines whether the Kubernetes resources should be outputted in JSON format
	JSON bool
}

Options are the options for the dump command

Directories

Path Synopsis
gvr

Jump to

Keyboard shortcuts

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