debug

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdDebug

func NewCmdDebug(tkcContext *config.TkcContext, streams genericclioptions.IOStreams) *cobra.Command

NewCmdDebug creates the debug subcommand which helps container debugging

Types

type DebugOptions

type DebugOptions struct {

	// Pod select options
	Namespace string
	PodName   string

	// Debug options
	Image            string
	ContainerName    string
	Command          []string
	HostDockerSocket string
	LauncherImage    string
	Privileged       bool

	KubeCli *kubernetes.Clientset

	RestConfig *rest.Config

	genericclioptions.IOStreams
}

DebugOptions specify how to run debug container in a running pod

func NewDebugOptions

func NewDebugOptions(iostreams genericclioptions.IOStreams) *DebugOptions

func (*DebugOptions) Complete

func (o *DebugOptions) Complete(tkcContext *config.TkcContext, cmd *cobra.Command, argsIn []string) error

Complete populate default values for DebugOptions

func (*DebugOptions) Run

func (o *DebugOptions) Run() error

Jump to

Keyboard shortcuts

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