Documentation
¶
Overview ¶
Package route implements the Route resource domain.
The Route domain is responsible for managing the lifecycle of Route resources. It receives commands from the Engine, resolves resource specifications into validated contracts, delegates processing to the application layer, and records reconciliation outcomes through conditions and events.
Unlike Build, Deployment, and Package, Route has no cross-cutting prerequisites of its own (no secrets, no ServiceAccounts, no RBAC to provision) — RouteService dispatches directly to the selected backend provider (Knative or Ingress) with no mediator stage in between.
Index ¶
- type RouteDomain
- func (d *RouteDomain) CanCreate(obj client.Object) bool
- func (d *RouteDomain) CanDelete(obj client.Object) bool
- func (d *RouteDomain) CanUpdate(oldObj, newObj client.Object) bool
- func (d *RouteDomain) GVK() schema.GroupVersionKind
- func (d *RouteDomain) Handle(ctx context.Context, cmd command.Command) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RouteDomain ¶
type RouteDomain struct {
// contains filtered or unexported fields
}
RouteDomain implements the Route resource domain logic.
func New ¶
func New(routeService *application.RouteService, domainCache *cache.Cache, eventRecorder *events.EventRecorder, log logr.Logger) *RouteDomain
New returns a new RouteDomain instance configured with the necessary dependencies.
func (*RouteDomain) CanCreate ¶
func (d *RouteDomain) CanCreate(obj client.Object) bool
CanCreate reports whether the supplied object can be processed as a Route create operation.
func (*RouteDomain) CanDelete ¶
func (d *RouteDomain) CanDelete(obj client.Object) bool
CanDelete reports whether the supplied object can be processed as a Route delete operation.
func (*RouteDomain) CanUpdate ¶
func (d *RouteDomain) CanUpdate(oldObj, newObj client.Object) bool
CanUpdate reports whether the supplied update should trigger Route reconciliation by comparing the specifications of the old and new objects.
func (*RouteDomain) GVK ¶
func (d *RouteDomain) GVK() schema.GroupVersionKind
GVK tells the engine which CRD this domain handles.