gitrepository

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: 10 Imported by: 0

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

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

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.

Jump to

Keyboard shortcuts

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