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 corev1client.CoreV1Interface AppsClient appsv1client.AppsV1Interface ImageClient imagev1client.ImageV1Interface Printer printers.ResourcePrinter LogsForObject polymorphichelpers.LogsForObjectFunc RESTClientGetter genericclioptions.RESTClientGetter 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 []corev1.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) RunDebug ¶
func (o *DebugOptions) RunDebug() error
Debug creates and runs a debugging pod.
func (DebugOptions) Validate ¶
func (o DebugOptions) Validate() error
Click to show internal directories.
Click to hide internal directories.