Documentation
¶
Overview ¶
Package environment implements the Environment resource domain.
The Environment domain is responsible for managing the lifecycle of Environment resources. It receives commands from the Engine, resolves resource specifications into validated contracts, and records reconciliation outcomes through conditions and events.
Current stage — intentionally minimal:
- Resolves the environment contract (secretStore.provider required)
- Publishes resolved projection to cache
- Sets standard conditions
Deferred:
- Secret store connection validation (pkg/environment/api providers)
- Observer ref-patching (environment-observer)
- Mediator prerequisites
Index ¶
- type EnvironmentDomain
- func (d *EnvironmentDomain) CanCreate(obj client.Object) bool
- func (d *EnvironmentDomain) CanDelete(obj client.Object) bool
- func (d *EnvironmentDomain) CanUpdate(oldObj, newObj client.Object) bool
- func (d *EnvironmentDomain) GVK() schema.GroupVersionKind
- func (d *EnvironmentDomain) 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 EnvironmentDomain ¶
type EnvironmentDomain struct {
// contains filtered or unexported fields
}
EnvironmentDomain implements the Environment resource domain logic.
func New ¶
func New( c client.Client, scheme *runtime.Scheme, domainCache *cache.Cache, eventRecorder *events.EventRecorder, log logr.Logger, ) *EnvironmentDomain
New returns a new EnvironmentDomain configured with the necessary dependencies.
func (*EnvironmentDomain) CanCreate ¶
func (d *EnvironmentDomain) CanCreate(obj client.Object) bool
CanCreate reports whether obj is an Environment.
func (*EnvironmentDomain) CanDelete ¶
func (d *EnvironmentDomain) CanDelete(obj client.Object) bool
CanDelete reports whether obj is an Environment.
func (*EnvironmentDomain) CanUpdate ¶
func (d *EnvironmentDomain) CanUpdate(oldObj, newObj client.Object) bool
CanUpdate reports whether oldObj and newObj are both Environments whose specs differ.
func (*EnvironmentDomain) GVK ¶
func (d *EnvironmentDomain) GVK() schema.GroupVersionKind
GVK tells the engine which CRD this domain handles.