Documentation
¶
Overview ¶
Package gitrepository observes the Crossplane Repository object the GitRepository domain's provider creates and reflects its Ready condition back onto the owning GitRepository CR's status.
Reconcile lists Crossplane Repository objects labeled for the GitRepository CR (rather than looking one up by a fixed name), reports StatePending when none exist yet, and otherwise derives readiness from the first match's status.conditions — mirroring the same "provider creates infrastructure, a separate observer reports on its real-world state" split used by the build and githubevent observers.
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 the Crossplane Repository resource backing a GitRepository CR and reflects its Ready condition back onto the GitRepository's status.
func (*Reconciler) Reconcile ¶
Reconcile lists the Crossplane Repository objects labeled for this GitRepository, derives a domain.Result from their Ready condition (or StatePending if none exist yet), and writes it to status.
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers the GitRepository observer with the controller manager, watching GitRepository CRs.