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 ¶
- Variables
- func NewApplyCmd() *cobra.Command
- func NewCreateCmd(_ *di.Runtime) *cobra.Command
- func NewDebugCmd() *cobra.Command
- func NewDeleteCmd() *cobra.Command
- func NewDescribeCmd() *cobra.Command
- func NewEditCmd() *cobra.Command
- func NewExecCmd() *cobra.Command
- func NewExplainCmd() *cobra.Command
- func NewExportCmd(_ *di.Runtime) *cobra.Command
- func NewExposeCmd() *cobra.Command
- func NewGetCmd() *cobra.Command
- func NewImagesCmd() *cobra.Command
- func NewImportCmd(_ *di.Runtime) *cobra.Command
- func NewInstallCmd(_ *di.Runtime) *cobra.Command
- func NewLogsCmd() *cobra.Command
- func NewPushCmd(_ *di.Runtime) *cobra.Command
- func NewReconcileCmd(_ *di.Runtime) *cobra.Command
- func NewRolloutCmd() *cobra.Command
- func NewScaleCmd() *cobra.Command
- func NewValidateCmd() *cobra.Command
- func NewWaitCmd() *cobra.Command
- func NewWatchCmd() *cobra.Command
- func NewWorkloadCmd(runtimeContainer *di.Runtime) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
var ErrBuildFailed = errors.New("build failed")
ErrBuildFailed is returned when a kustomize build or manifest validation fails.
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.
var ErrNoIPAddress = errors.New("no IP address found for container")
ErrNoIPAddress is returned when a container has no IP address.
var ErrNodeNotFound = errors.New("node not found")
ErrNodeNotFound is returned when the specified node name cannot be resolved.
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.
var ErrUnknownOutputFormat = errors.New("unknown output format")
ErrUnknownOutputFormat is returned when an unrecognized output format is specified.
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 ¶
NewApplyCmd creates the workload apply command.
func NewCreateCmd ¶
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
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 ¶
NewDeleteCmd creates the workload delete command.
func NewDescribeCmd ¶
NewDescribeCmd creates the workload describe command.
func NewExplainCmd ¶
NewExplainCmd creates the workload explain command.
func NewExportCmd ¶
NewExportCmd creates the image export command.
func NewExposeCmd ¶
NewExposeCmd creates the workload expose command.
func NewImagesCmd ¶
NewImagesCmd creates the command to list required container images.
func NewImportCmd ¶
NewImportCmd creates the image import command.
func NewInstallCmd ¶
NewInstallCmd creates the workload install command.
func NewPushCmd ¶
NewPushCmd creates the workload push command.
func NewReconcileCmd ¶
NewReconcileCmd creates the workload reconcile command.
func NewRolloutCmd ¶
NewRolloutCmd creates the workload rollout command.
func NewScaleCmd ¶
NewScaleCmd creates the workload scale command.
func NewValidateCmd ¶
NewValidateCmd creates the workload validate command.
func NewWatchCmd ¶
NewWatchCmd creates the workload watch command.
Types ¶
This section is empty.