githubevent

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

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

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

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.

Jump to

Keyboard shortcuts

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