kubectlk8s.io/kubectl/pkg/cmd/debug Index | Files

package debug

import "k8s.io/kubectl/pkg/cmd/debug"

Index

Functions

func NewCmdDebug

func NewCmdDebug(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

NewCmdDebug returns a cobra command that runs kubectl debug.

Types

type DebugOptions

type DebugOptions struct {
	Args        []string
	ArgsOnly    bool
	Attach      bool
	Container   string
	Env         []corev1.EnvVar
	Image       string
	Interactive bool
	Namespace   string
	PodNames    []string
	PullPolicy  corev1.PullPolicy
	Quiet       bool
	Target      string
	TTY         bool

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

DebugOptions holds the options for an invocation of kubectl debug.

func NewDebugOptions

func NewDebugOptions(streams genericclioptions.IOStreams) *DebugOptions

NewDebugOptions returns a DebugOptions initialized with default values.

func (*DebugOptions) Complete

func (o *DebugOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete finishes run-time initialization of debug.DebugOptions.

func (*DebugOptions) Run

func (o *DebugOptions) Run(f cmdutil.Factory, cmd *cobra.Command) error

Run executes a kubectl debug.

func (*DebugOptions) Validate

func (o *DebugOptions) Validate(cmd *cobra.Command) error

Validate checks that the provided debug options are specified.

Source Files

debug.go

Version
v0.18.18
Published
Apr 15, 2021
Platform
js/wasm
Imports
28 packages
Last checked
11 seconds ago

Tools for package owners.