Documentation
¶
Overview ¶
Package deployment implements the Deployment resource domain.
The Deployment domain is responsible for managing the lifecycle of Deployment resources. It receives commands from the Engine, resolves resource specifications into validated contracts, delegates processing to the application layer, and records reconciliation outcomes through conditions and events.
Index ¶
- type DeployDomain
- func (d *DeployDomain) CanCreate(obj client.Object) bool
- func (d *DeployDomain) CanDelete(obj client.Object) bool
- func (d *DeployDomain) CanUpdate(oldObj, newObj client.Object) bool
- func (d *DeployDomain) GVK() schema.GroupVersionKind
- func (d *DeployDomain) 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 DeployDomain ¶
type DeployDomain struct {
// contains filtered or unexported fields
}
DeployDomain implements the Deployment resource domain.
func New ¶
func New(deploymentMediatorIn *deploymentMediator.Mediator, deploymentServiceIn *deployapp.DeploymentService, domainCache *cache.Cache, reader client.Reader, eventRecorder *events.EventRecorder, log logr.Logger) *DeployDomain
New returns a new DeployDomain instance configured with the necessary dependencies.
func (*DeployDomain) CanCreate ¶
func (d *DeployDomain) CanCreate(obj client.Object) bool
CanCreate reports whether the supplied object can be processed as a Deploy create operation.
func (*DeployDomain) CanDelete ¶
func (d *DeployDomain) CanDelete(obj client.Object) bool
CanDelete reports whether the supplied object can be processed as a Deploy delete operation.
func (*DeployDomain) CanUpdate ¶
func (d *DeployDomain) CanUpdate(oldObj, newObj client.Object) bool
CanUpdate reports whether the supplied update should trigger Deploy reconciliation by comparing the specifications of the old and new objects.
func (*DeployDomain) GVK ¶
func (d *DeployDomain) GVK() schema.GroupVersionKind
GVK tells the engine.Engine which CRD type this domain handles.