task

package
v0.0.71 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: Apache-2.0 Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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