Documentation
¶
Overview ¶
Package adapter implements the Deployment resolution Adapter.
This file owns the Adapter — a thin struct wrapper around resolve.ResolveDeployment. The Adapter exists to satisfy interface-based injection points in the application layer where a concrete resolution dependency must be passed as a value rather than called as a free function.
Current deps are intentionally empty — client and logger will be added here when resolution requires cross-CR reads or observability hooks. Until then, resolution is pure and stateless so no deps are needed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
}
Adapter wraps the Deployment resolution function for interface-based injection. Stateless — all resolution logic lives in resolve.ResolveDeployment.
Planned future deps (add when needed):
- client client.Client — for cross-CR reads during resolution.
- log logr.Logger — for resolution observability.
func NewAdapter ¶
func NewAdapter() *Adapter
NewAdapter constructs a stateless Deployment resolution Adapter.
func (*Adapter) Resolve ¶
func (a *Adapter) Resolve( ctx context.Context, deployment *environmentv1alpha1.Deployment, ) (*resolve.ResolvedDeployment, error)
Resolve delegates to resolve.ResolveDeployment, returning the resolved Deployment contract or an error if the CR spec fails validation.