Skip to content

Commit 122ca70

Browse files
SarahFrenchradeksimko
authored andcommitted
Add ephemeral resource and state store processing to protocol 5 grpcwrap
1 parent e45269e commit 122ca70

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

internal/grpcwrap/provider.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,12 @@ func (p *provider) GetSchema(_ context.Context, req *tfplugin5.GetProviderSchema
8080
Block: convert.ConfigSchemaToProto(dat.Body),
8181
}
8282
}
83-
// TODO: Add state stores here
83+
for typ, dat := range p.schema.StateStoreSchemas {
84+
resp.StateStoreSchemas[typ] = &tfplugin5.Schema{
85+
Version: int64(dat.Version),
86+
Block: convert.ConfigSchemaToProto(dat.Body),
87+
}
88+
}
8489
if decls, err := convert.FunctionDeclsToProto(p.schema.Functions); err == nil {
8590
resp.Functions = decls
8691
} else {

0 commit comments

Comments
 (0)