Skip to content

Spin Factors SIP #2518

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

Merged
merged 1 commit into from
Aug 27, 2024
Merged

Spin Factors SIP #2518

merged 1 commit into from
Aug 27, 2024

Conversation

lann
Copy link
Collaborator

@lann lann commented May 20, 2024

@lann lann marked this pull request as draft May 20, 2024 13:49
@lann lann mentioned this pull request May 20, 2024
@lann lann marked this pull request as ready for review June 13, 2024 15:16
## Implementation Details

Based on initial prototyping, the following Rust types represent the starting
point for `spin-factors` (simplified from the actual code for clarity):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- Depending on subjective evaluation at this point, possibly merge
`spin-core` and `spin-factors`.

## Implementation Details
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lann how will factors receive runtime config information that is not part of a factor's runtime config but still applies to it's set up. Specifically, how should state_dir and log_dir be passed which are now set in RuntimeConfigOpts alongside provider information.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My current hypothesis is that they should be handled outside of the factors system and used to configure individual factors as needed.

state_dir will be used to build default paths for a few factors in spin up, but isn't going to be applicable to every runtime, so I think it will be up to the runtime to parse state_dir out of the runtime config and derive e.g. "default KV store path" from that to configure the KeyValueFactor.

@michelleN michelleN mentioned this pull request Aug 14, 2024
2 tasks
@radu-matei radu-matei added this to the Spin 3.0 milestone Aug 20, 2024
Signed-off-by: Lann Martin <[email protected]>
@lann lann mentioned this pull request Aug 27, 2024
@lann lann merged commit 8200834 into spinframework:main Aug 27, 2024
1 check passed
@lann lann deleted the factors-sip branch August 27, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants