Documentation
¶
Overview ¶
Package serviceunit implements the ServiceUnit prerequisite mediator.
Currently a stub relative to its siblings (build, deployment, packages): EnsurePrerequisites validates that resolved and its Spec are non-nil and provisions nothing: a ServiceUnit's workload is applied by the owning Deployment's reconciliation, not by this mediator. Its one prerequisite is read, not created — a ServiceUnit of type BUILD runs the image its Build last pushed, and that image is injected into the resolved contract here.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mediator ¶
Mediator coordinates the various stages of the application lifecycle.
func (*Mediator) EnsurePrerequisites ¶
func (m *Mediator) EnsurePrerequisites( ctx context.Context, resolved *serviceunitResolution.ResolvedServiceUnit, ) error
EnsurePrerequisites validates resolved and ensures whatever the ServiceUnit needs before its workload can be reconciled.