route

package
v0.6.4 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: 14 Imported by: 0

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

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

GVK tells the engine which CRD this domain handles.

func (*RouteDomain) Handle

func (d *RouteDomain) Handle(ctx context.Context, cmd command.Command) error

Handle executes command.Command operations routed by the Engine.

Jump to

Keyboard shortcuts

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