workload

package
v6.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: Apache-2.0 Imports: 63 Imported by: 0

Documentation

Overview

Package workload provides the workload command namespace.

This package groups all workload-related commands for managing Kubernetes resources, including reconcile, push, apply, create, delete, describe, edit, exec, explain, expose, get, gen, install, logs, rollout, scale, validate, wait, and watch operations.

Index

Constants

This section is empty.

Variables

View Source
var ErrBuildFailed = errors.New("build failed")

ErrBuildFailed is returned when a kustomize build or manifest validation fails.

View Source
var ErrHostModePositionalArgs = errors.New(
	"--host mode does not accept kubectl-style positional args; " +
		"place the container command after '--' (e.g., debug --host <node> -- /bin/sh)",
)

ErrHostModePositionalArgs is returned when kubectl-style positional args are used with --host mode.

View Source
var ErrNoIPAddress = errors.New("no IP address found for container")

ErrNoIPAddress is returned when a container has no IP address.

View Source
var ErrNodeNotFound = errors.New("node not found")

ErrNodeNotFound is returned when the specified node name cannot be resolved.

View Source
var ErrNonZeroExitCode = errors.New("container process exited with non-zero code")

ErrNonZeroExitCode is returned when a container process exits with a non-zero exit code.

View Source
var ErrUnknownOutputFormat = errors.New("unknown output format")

ErrUnknownOutputFormat is returned when an unrecognized output format is specified.

View Source
var ErrUnsupportedHostDebug = errors.New(
	"host-level debugging is not supported for this distribution/provider combination",
)

ErrUnsupportedHostDebug is returned for unsupported distribution/provider combinations.

Functions

func NewApplyCmd

func NewApplyCmd() *cobra.Command

NewApplyCmd creates the workload apply command.

func NewCreateCmd

func NewCreateCmd(_ *di.Runtime) *cobra.Command

NewCreateCmd creates the workload create command. The runtime parameter is kept for consistency with other workload command constructors, though it's currently unused as this command wraps kubectl and flux directly.

func NewDebugCmd added in v6.6.0

func NewDebugCmd() *cobra.Command

NewDebugCmd creates the workload debug command.

Without --host it wraps kubectl debug (ephemeral containers, node debugging). With --host <node-name> it performs host-level debugging routed per distribution:

  • Vanilla/K3s/VCluster (Docker): interactive docker exec into the node container
  • Talos (all providers): Talos SDK DebugClient.ContainerRun()

func NewDeleteCmd

func NewDeleteCmd() *cobra.Command

NewDeleteCmd creates the workload delete command.

func NewDescribeCmd

func NewDescribeCmd() *cobra.Command

NewDescribeCmd creates the workload describe command.

func NewEditCmd

func NewEditCmd() *cobra.Command

NewEditCmd creates the workload edit command.

func NewExecCmd

func NewExecCmd() *cobra.Command

NewExecCmd creates the workload exec command.

func NewExplainCmd

func NewExplainCmd() *cobra.Command

NewExplainCmd creates the workload explain command.

func NewExportCmd

func NewExportCmd(_ *di.Runtime) *cobra.Command

NewExportCmd creates the image export command.

func NewExposeCmd

func NewExposeCmd() *cobra.Command

NewExposeCmd creates the workload expose command.

func NewGetCmd

func NewGetCmd() *cobra.Command

NewGetCmd creates the workload get command.

func NewImagesCmd

func NewImagesCmd() *cobra.Command

NewImagesCmd creates the command to list required container images.

func NewImportCmd

func NewImportCmd(_ *di.Runtime) *cobra.Command

NewImportCmd creates the image import command.

func NewInstallCmd

func NewInstallCmd(_ *di.Runtime) *cobra.Command

NewInstallCmd creates the workload install command.

func NewLogsCmd

func NewLogsCmd() *cobra.Command

NewLogsCmd creates the workload logs command.

func NewPushCmd

func NewPushCmd(_ *di.Runtime) *cobra.Command

NewPushCmd creates the workload push command.

func NewReconcileCmd

func NewReconcileCmd(_ *di.Runtime) *cobra.Command

NewReconcileCmd creates the workload reconcile command.

func NewRolloutCmd

func NewRolloutCmd() *cobra.Command

NewRolloutCmd creates the workload rollout command.

func NewScaleCmd

func NewScaleCmd() *cobra.Command

NewScaleCmd creates the workload scale command.

func NewValidateCmd

func NewValidateCmd() *cobra.Command

NewValidateCmd creates the workload validate command.

func NewWaitCmd

func NewWaitCmd() *cobra.Command

NewWaitCmd creates the workload wait command.

func NewWatchCmd

func NewWatchCmd() *cobra.Command

NewWatchCmd creates the workload watch command.

func NewWorkloadCmd

func NewWorkloadCmd(runtimeContainer *di.Runtime) *cobra.Command

NewWorkloadCmd creates and returns the workload command group namespace.

Types

This section is empty.

Directories

Path Synopsis
Package gen provides the gen command namespace for generating Kubernetes resources.
Package gen provides the gen command namespace for generating Kubernetes resources.

Jump to

Keyboard shortcuts

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