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

Update get provider schema to include state store information #36834

Merged

Conversation

SarahFrench
Copy link
Member

@SarahFrench SarahFrench commented Apr 2, 2025

This PR updates the GetProviderSchema/GetSchema response so that it includes info about state stores.

@SarahFrench SarahFrench added the no-changelog-needed Add this to your PR if the change does not require a changelog entry label Apr 2, 2025
@SarahFrench SarahFrench changed the base branch from main to radek/pluggable-backends-protocol April 2, 2025 18:26
@SarahFrench SarahFrench requested a review from radeksimko April 2, 2025 18:28
@@ -73,6 +74,7 @@ func (p *provider) GetSchema(_ context.Context, req *tfplugin5.GetProviderSchema
Block: convert.ConfigSchemaToProto(dat.Body),
}
}
// Do we add state stores here? Why aren't ephemeral resources here?
Copy link
Member Author

Choose a reason for hiding this comment

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

This confused me, and I'll take another look tomorrow

Copy link
Member Author

Choose a reason for hiding this comment

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

Added in 81b44cf

I think ephemeral resources were omitted here accidentally, and that didn't matter because it's a testing resource for E2E tests.

@SarahFrench
Copy link
Member Author

I think this is at an ok level of completion for merging into the prototyping branch (assuming no glaring errors). Having this implemented unblocks any code that may use the provider schema response data.

Copy link
Member

@radeksimko radeksimko left a comment

Choose a reason for hiding this comment

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

Overall LGTM, just two very minor comments/questions.

@radeksimko radeksimko merged commit fd74a25 into radek/pluggable-backends-protocol Apr 11, 2025
8 checks passed
@radeksimko radeksimko deleted the sarah/update-get-provider-schema branch April 11, 2025 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog-needed Add this to your PR if the change does not require a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants