environment

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

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

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

GVK tells the engine which CRD this domain handles.

func (*EnvironmentDomain) Handle

func (d *EnvironmentDomain) 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