buildrun

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package buildrun observes Shipwright BuildRun objects and reflects their terminal Succeeded condition back onto the owning Build CR's status.

This exists because the Build domain's own Ensure() can only report that build infrastructure was successfully dispatched (Triggered=true) — it does not wait for the BuildRun to actually finish. This observer is the other half: it watches BuildRun directly (not Build), skips non-terminal runs, resolves the owner via the build.blanketops.dev/name label, and writes the real success/failure outcome the Build CR's contract status needed all along.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	client.Client
	Status   *application.StatusWriter
	Recorder *events.EventRecorder
}

Reconciler observes Shipwright BuildRun resources and feeds their terminal Succeeded condition back to the owning Build CR's contract status and conditions.

func (*Reconciler) Reconcile

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

Reconcile exits immediately for non-terminal BuildRuns, resolves the owning Build via the build.blanketops.dev/name label, and writes the outcome to its status.

func (*Reconciler) SetupWithManager

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

SetupWithManager registers the BuildRun observer with the controller manager, watching Shipwright BuildRun resources rather than Build CRs — the BuildRun is what signals whether the build actually succeeded.

Jump to

Keyboard shortcuts

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