info

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Info

func Info(o Options) error

Info gets the cluster info

Types

type Options

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

	// KubeClient is the optional client-go client
	KubeClient kubernetes.Interface

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

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

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

	// RootDumpDir contains the node dump files used by cluster info
	RootDumpDir string

	// Writer writes the cluster info data. Default is os.Stdout
	Writer io.Writer
}

Options are the options for the info command If you want to dump more info from pods, change the dump/scripts.go/dumpSubsetScript script, then change extractNodeInfo and display.go to display the information

Jump to

Keyboard shortcuts

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