serviceunit

package
v0.6.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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

type Mediator struct {
	Client client.Client
	Scheme *runtime.Scheme
	Log    logr.Logger
}

Mediator coordinates the various stages of the application lifecycle.

func New

func New(c client.Client, scheme *runtime.Scheme, log logr.Logger) *Mediator

New creates a new Mediator with all the sub-reconcilers.

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.

Jump to

Keyboard shortcuts

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