shell

package
v1.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunInNode

func RunInNode(config Config, nodeName, debugPodNamespace string) error

RunInNode starts an interactive shell on a node by creating a HostNetwork pod and attaching to it.

func RunInPod

func RunInPod(config Config, podNamespace, podName string) error

RunInPod starts an interactive shell in a pod by creating and attaching to an ephemeral container.

Types

type Config

type Config struct {
	RestConfig       *rest.Config
	RetinaShellImage string
	HostPID          bool
	Capabilities     []string
	Timeout          time.Duration

	// Host filesystem access applies only to nodes, not pods.
	MountHostFilesystem      bool
	AllowHostFilesystemWrite bool

	AppArmorUnconfined bool
	SeccompUnconfined  bool
}

Config is the configuration for starting a shell in a node or pod.

Jump to

Keyboard shortcuts

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