Documentation
¶
Index ¶
Constants ¶
View Source
const ( ConditionWorkflowRunning controller.ConditionType = "WorkflowRunning" ConditionWorkflowFailed controller.ConditionType = "WorkflowFailed" ConditionWorkflowSucceeded controller.ConditionType = "WorkflowSucceeded" ConditionWorkflowCompleted controller.ConditionType = "WorkflowCompleted" )
View Source
const ( ReasonWorkflowPending controller.ConditionReason = "WorkflowPending" ReasonWorkflowRunning controller.ConditionReason = "WorkflowRunning" ReasonWorkflowSucceeded controller.ConditionReason = "WorkflowSucceeded" ReasonWorkflowFailed controller.ConditionReason = "WorkflowFailed" ReasonWorkflowPlaneNotFound controller.ConditionReason = "WorkflowPlaneNotFound" ReasonWorkflowPlaneResolutionFailed controller.ConditionReason = "WorkflowPlaneResolutionFailed" ReasonWorkflowResolutionFailed controller.ConditionReason = "WorkflowResolutionFailed" ReasonComponentValidationFailed controller.ConditionReason = "ComponentValidationFailed" )
View Source
const (
// WorkflowRunCleanupFinalizer is the finalizer used to clean up workflow 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
PlaneClientProvider kubernetesClient.WorkflowPlaneClientProvider
// Pipeline is the workflow rendering pipeline, shared across all reconciliations.
// This enables CEL environment caching across different workflow runs and reconciliations.
Pipeline *workflowpipeline.Pipeline
}
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.
Click to show internal directories.
Click to hide internal directories.