workflow

package
v1.4.19-ec5 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// StageClusterInspection represents cluster inspection stage.
	StageClusterInspection wr.StageID = wr.NewStageID("add-nodes-cluster-inspection", "Gathering additional information from the target cluster")

	// StageCreateManifests represents the manifests creation stage.
	StageCreateManifests wr.StageID = wr.NewStageID("create-manifest", "Creating internal configuration manifests")

	// StageIgnition represents the ignition creation stage.
	StageIgnition wr.StageID = wr.NewStageID("ignition", "Rendering ISO ignition")

	// StageFetchBaseISO represents the base image fetching stage.
	StageFetchBaseISO wr.StageID = wr.NewStageID("fetch-base-iso", "Retrieving the base ISO image")
	// StageFetchBaseISOExtract represents the base image extraction substage.
	StageFetchBaseISOExtract wr.StageID = wr.NewStageID("fetch-base-iso.extract-image", "Extracting base image from release payload")
	// StageFetchBaseISOVerify represents the image version verification substage.
	StageFetchBaseISOVerify wr.StageID = wr.NewStageID("fetch-base-iso.verify-version", "Verifying base image version")
	// StageFetchBaseISODownload represents the base image download substage.
	StageFetchBaseISODownload wr.StageID = wr.NewStageID("fetch-base-iso.download-image", "Downloading base ISO image")

	// StageAgentArtifacts represents the agent artifact stage.
	StageAgentArtifacts wr.StageID = wr.NewStageID("create-agent-artifacts", "Creating agent artifacts for the final image")
	// StageAgentArtifactsAgentTUI represents the agent-tui embedding substage.
	StageAgentArtifactsAgentTUI wr.StageID = wr.NewStageID("create-agent-artifacts.agent-tui", "Extracting required artifacts from release payload")
	// StageAgentArtifactsPrepare represents the artifacts preparation substage.
	StageAgentArtifactsPrepare wr.StageID = wr.NewStageID("create-agent-artifacts.prepare", "Preparing artifacts")

	// StageGenerateISO represents the iso assembling stage.
	StageGenerateISO wr.StageID = wr.NewStageID("generate-iso", "Assembling ISO image")

	// StageGeneratePXE represents the pxe assembling stage.
	StageGeneratePXE wr.StageID = wr.NewStageID("generate-pxe", "Assembling PXE files")
)

Functions

This section is empty.

Types

type AgentWorkflow

type AgentWorkflow struct {
	File     *asset.File
	Workflow AgentWorkflowType
}

AgentWorkflow allows other assets to check which is the workflow currently active.

func (*AgentWorkflow) Dependencies

func (*AgentWorkflow) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed to generate the asset.

func (*AgentWorkflow) Files

func (a *AgentWorkflow) Files() []*asset.File

Files returns the files generated by the asset.

func (*AgentWorkflow) Generate

func (a *AgentWorkflow) Generate(ctx context.Context, dependencies asset.Parents) error

Generate generates the AgentWorkflow asset.

func (*AgentWorkflow) Load

func (a *AgentWorkflow) Load(f asset.FileFetcher) (bool, error)

Load returns the asset from disk.

func (*AgentWorkflow) Name

func (*AgentWorkflow) Name() string

Name returns a human friendly name for the asset.

type AgentWorkflowAddNodes

type AgentWorkflowAddNodes struct {
	AgentWorkflow
}

AgentWorkflowAddNodes is meant just to define the add nodes workflow.

func (*AgentWorkflowAddNodes) Generate

func (a *AgentWorkflowAddNodes) Generate(_ context.Context, dependencies asset.Parents) error

Generate generates the AgentWorkflow asset.

func (*AgentWorkflowAddNodes) Name

func (*AgentWorkflowAddNodes) Name() string

Name returns a human friendly name for the asset.

type AgentWorkflowType

type AgentWorkflowType string

AgentWorkflowType defines the supported agent workflows.

const (
	// AgentWorkflowTypeInstall identifies the install workflow.
	AgentWorkflowTypeInstall AgentWorkflowType = "install"
	// AgentWorkflowTypeAddNodes identifies the add nodes workflow.
	AgentWorkflowTypeAddNodes AgentWorkflowType = "addnodes"
	// AgentWorkflowTypeInstallInteractiveDisconnected identifies a specific kind of
	// disconnected install workflow. The installation details will be provided through
	// a dedicated UI running on the rendezvous node, and in addition no external registry
	// will be required for an air-gapped deployment.
	AgentWorkflowTypeInstallInteractiveDisconnected AgentWorkflowType = "install-interactive-disconnected"
)

type ContextKey

type ContextKey string

ContextKey is used as a type for storing a context value.

const WorkflowTypeKey ContextKey = "workflow"

WorkflowTypeKey is used as a context key to store a value.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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