Skip to content

validation: complete graph by configuring edges #3711

@kalleep

Description

@kalleep

For validation we use dag.Graph but we currently do not setup edges between nodes similar to how its done for runtime.

With edges between nodes we can validate that there are no circular references and that nodes we reference exists.

We should add the same references that we do for runtime https://github.com/grafana/alloy/blob/main/internal/runtime/internal/controller/loader.go#L600 and perform similar lookup as we do here https://github.com/grafana/alloy/blob/main/internal/runtime/internal/controller/component_references.go#L44C6-L44C25

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions