Skip to content

[Arch/Design] Internal provision event handlers fire per-layer instead of once #7495

Description

@rajeshkamal5050

When using infra.layers, our internal handlers registered via projectConfig.AddHandler fire once per layer instead of once for the whole provision.

Today this is harmless - the two handlers (container apps RESOURCE_EXISTS check, AKS kube context setup) are both idempotent. But architecturally it does not match the deploy model where root handlers wrap everything once.

User-facing hooks (YAML) are not affected - project-level hooks fire once via middleware, layer hooks fire per-layer by design.

This came up during PR #7382 review. We should align the internal event handler model with deploy before more handlers get added.

Ref: #7382 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions