task

package
v0.0.66 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package task registers the `seictl task` verb tree, the operator-facing surface over each node's sidecar task API (/v0/tasks) reached directly through the pod's in-pod kube-rbac-proxy.

It is the sibling of `seictl workflow`: where workflow manages SeiNodeTaskWorkflow custom resources the controller executes, task drives the sidecar HTTP API on one addressed pod, with the same two-path shape:

  • `task get|list|delete|submit` — the raw verbs: thin wrappers over the typed SidecarClient (read one/all task results, cancel-or-delete a task, or POST an arbitrary task). `submit` is the generic escape hatch, the analogue of `workflow apply`.
  • `task snapshot-upload` — the paved road: submit one snapshot-upload-once with a fresh task ID and poll it to a terminal state with kubectl-wait-compatible exit codes. The procedure a per-(network,cluster) CronJob invokes daily.

Every verb addresses a single pod's sidecar. The target is either an explicit --node (the SeiNode / headless-service name; the sidecar is reached at <node>-0.<node>.<ns>.svc.cluster.local through its proxy) or, for snapshot-upload, discovered by label selection. Cluster + namespace resolve from --kubeconfig and -n exactly as the workflow and node trees do.

Index

Constants

This section is empty.

Variables

View Source
var Cmd = cli.Command{
	Name:  "task",
	Usage: "Drive a node's sidecar task API directly (/v0/tasks through its kube-rbac-proxy)",
	Commands: []*cli.Command{
		&snapshotUploadCmd,
		&getCmd,
		&listCmd,
		&submitCmd,
		&deleteCmd,
	},
}

Cmd is the `seictl task` command tree.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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