Documentation
¶
Overview ¶
Package githubevent observes GitHubEvent CRs and the Argo Events Sensor provisioned for each, deriving and writing the event's accepted/triggered/ success status and conditions.
The GitHubEvent domain's Ensure() can only report that ingress infrastructure was provisioned (Triggered=true) — whether a webhook payload has actually arrived, and whether the Sensor delivered it successfully, can only be known by watching the CR (for a populated spec.contract.eventId/eventType) and the Sensor's own Succeeded condition directly, which is this observer's job.
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 GitHubEvent CRs and the Argo Events Sensor created for each, deriving and writing the event's accepted/triggered/success status and conditions.
func (*Reconciler) Reconcile ¶
Reconcile resolves the GitHubEvent's contract, checks whether a payload has been received and whether its Sensor reports success, and writes the resulting status via buildContractAndConditions.
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers the GitHubEvent observer with the controller manager, watching GitHubEvent CRs.