workflow

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 28 Imported by: 0 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func YAMLToStatus

func YAMLToStatus(wf *Workflow) *v1alpha1.WorkflowStatus

Types

type Action

type Action struct {
	Name        string            `yaml:"name"`
	Image       string            `yaml:"image"`
	Timeout     int64             `yaml:"timeout"`
	Command     []string          `yaml:"command,omitempty"`
	OnTimeout   []string          `yaml:"on-timeout,omitempty"`
	OnFailure   []string          `yaml:"on-failure,omitempty"`
	Volumes     []string          `yaml:"volumes,omitempty"`
	Environment map[string]string `yaml:"environment,omitempty"`
	Pid         string            `yaml:"pid,omitempty"`
	Namespaces  ActionNamespaces  `yaml:"namespaces,omitempty"`
}

Action is the basic executional unit for a workflow.

type ActionNamespaces added in v0.25.0

type ActionNamespaces struct {
	// Network is the network namespace the action container runs in. Passed
	// through to the container runtime as-is; set to "host" to share the host's
	// network namespace.
	Network string `yaml:"network,omitempty"`
	// PID is the PID namespace the action container runs in. Passed through to
	// the container runtime as-is; takes precedence over the deprecated
	// top-level pid field when set.
	PID string `yaml:"pid,omitempty"`
}

ActionNamespaces defines the Linux namespaces an action container runs in. This mirrors the v1alpha2 API spec.

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

Reconciler is a type for managing Workflows.

func NewReconciler

func NewReconciler(client ctrlclient.Client, references referenceResolver) *Reconciler

TODO(jacobweinstock): add functional arguments to the signature. TODO(jacobweinstock): write functional argument for customizing the backoff.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

Reconcile handles Workflow objects. This includes Template rendering, optional Hardware allowPXE toggling, and optional Hardware one-time netbooting.

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr manager.Manager, opts controller.Options) error

type Task

type Task struct {
	Name        string            `yaml:"name"`
	WorkerAddr  string            `yaml:"worker"`
	Actions     []Action          `yaml:"actions"`
	Volumes     []string          `yaml:"volumes,omitempty"`
	Environment map[string]string `yaml:"environment,omitempty"`
}

Task represents a task to be executed as part of a workflow.

type Workflow

type Workflow struct {
	Version       string `yaml:"version"`
	Name          string `yaml:"name"`
	ID            string `yaml:"id"`
	GlobalTimeout int    `yaml:"global_timeout"`
	Tasks         []Task `yaml:"tasks"`
}

Workflow represents a workflow to be executed.

Jump to

Keyboard shortcuts

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