workflowrun

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConditionWorkflowRunning   controller.ConditionType = "WorkflowRunning"
	ConditionWorkflowFailed    controller.ConditionType = "WorkflowFailed"
	ConditionWorkflowSucceeded controller.ConditionType = "WorkflowSucceeded"
	ConditionWorkflowCompleted controller.ConditionType = "WorkflowCompleted"
	ConditionWorkloadUpdated   controller.ConditionType = "WorkloadUpdated"
)
View Source
const (
	ReasonWorkflowPending            controller.ConditionReason = "WorkflowPending"
	ReasonWorkflowRunning            controller.ConditionReason = "WorkflowRunning"
	ReasonWorkflowSucceeded          controller.ConditionReason = "WorkflowSucceeded"
	ReasonWorkflowFailed             controller.ConditionReason = "WorkflowFailed"
	ReasonBuildPlaneNotFound         controller.ConditionReason = "BuildPlaneNotFound"
	ReasonBuildPlaneResolutionFailed controller.ConditionReason = "BuildPlaneResolutionFailed"
	ReasonWorkloadUpdated            controller.ConditionReason = "WorkloadUpdated"
	ReasonWorkloadUpdateFailed       controller.ConditionReason = "WorkloadUpdateFailed"
)
View Source
const (
	// WorkflowRunCleanupFinalizer is the finalizer used to clean up build plane resources.
	WorkflowRunCleanupFinalizer = "openchoreo.dev/workflowrun-cleanup"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	client.Client
	Scheme       *runtime.Scheme
	K8sClientMgr *kubernetesClient.KubeMultiClientManager

	// Pipeline is the workflow rendering pipeline, shared across all reconciliations.
	// This enables CEL environment caching across different workflow runs and reconciliations.
	Pipeline   *workflowpipeline.Pipeline
	GatewayURL string
}

Reconciler reconciles a WorkflowRun object

func (*Reconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. nolint:gocyclo

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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