debug

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdDebug

func NewCmdDebug(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

NewCmdDebug creates a command for debugging pods.

Types

type DebugOptions

type DebugOptions struct {
	PrintFlags *genericclioptions.PrintFlags

	Attach kcmd.AttachOptions

	CoreClient   coreclient.CoreInterface
	CoreV1Client corev1client.CoreV1Interface
	AppsClient   appsclient.AppsInterface
	ImageClient  imageclient.ImageInterface

	Printer       printers.ResourcePrinter
	LogsForObject polymorphichelpers.LogsForObjectFunc

	NoStdin    bool
	ForceTTY   bool
	DisableTTY bool
	Timeout    time.Duration

	Command            []string
	Annotations        map[string]string
	AsRoot             bool
	AsNonRoot          bool
	AsUser             int64
	KeepLabels         bool // TODO: evaluate selecting the right labels automatically
	KeepAnnotations    bool
	KeepLiveness       bool
	KeepReadiness      bool
	KeepInitContainers bool
	OneContainer       bool
	NodeName           string
	AddEnv             []kapi.EnvVar
	RemoveEnv          []string
	Resources          []string
	Builder            func() *resource.Builder
	Namespace          string
	ExplicitNamespace  bool
	DryRun             bool
	FullCmdName        string

	resource.FilenameOptions
	genericclioptions.IOStreams
}

func NewDebugOptions

func NewDebugOptions(streams genericclioptions.IOStreams) *DebugOptions

func (*DebugOptions) Complete

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

func (*DebugOptions) RunDebug

func (o *DebugOptions) RunDebug() error

Debug creates and runs a debugging pod.

func (DebugOptions) Validate

func (o DebugOptions) Validate() error

Jump to

Keyboard shortcuts

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