Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK: Add graph dependency for resource creation #20

Open
PI-Victor opened this issue Aug 23, 2024 · 1 comment
Open

SDK: Add graph dependency for resource creation #20

PI-Victor opened this issue Aug 23, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request triage/accepted

Comments

@PI-Victor
Copy link
Member

Context

Some resources are dependent on others to be created first, and so they need to be added in a graph to create them in the right order.

Description

The SDK needs a graph dependecy macro that can generate all the implementation for the resources that they need.

Ideas:
It could be done in such a way where the user adds the resources for creation in a builder like pattern such that the top ones are created first.

Just a first idea how this could look like:

let cidr = Cidr {};
let network = Network {};

let resources = tree::build()
        .with_dependency(cidr)
        .with_dependency(network)
        .build();

Which would get built in the background by a macro into a dep graph.

Acceptance Criteria

We can defined the order of resource creation using a builder pattern, a macro or something to that effect, that the user can then simply use to define the order of any generic resources that they want to create.

/triage
/assign
/label enhancement

Copy link

linear bot commented Aug 23, 2024

@oscar-automaton oscar-automaton bot added the enhancement New feature or request label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage/accepted
Development

No branches or pull requests

1 participant