Documentation
¶
Overview ¶
Package packages observes kapp-controller App objects and reflects what they report back onto the owning Package CR's status.
This exists because the Package domain can only request execution: it applies the kapp App and returns, and the provider deliberately never reports a final outcome. This observer is the other half. It watches the App directly (not the Package), resolves the owner from the App's controlling owner reference, and writes the outcome — applied, failed or still pending — through the package StatusWriter, emitting an event when the outcome is terminal.
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 kapp App resources and feeds their state back to the owning Package CR's contract status and conditions.
func (*Reconciler) Reconcile ¶
Reconcile resolves the Package that owns the App and writes the App's current state to its status. Apps not owned by a Package, and Packages that are gone or being deleted, are ignored.
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers the Package observer with the controller manager, watching kapp App resources rather than Package CRs — the App is what reports whether the package was actually applied.