Skip to content

Commit

Permalink
Implement GetMetadata protocol function in manifest provider (hashico…
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhouston authored Jan 4, 2024
1 parent 91c8a2b commit 99a33b6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/2384.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
`kubernetes_manifest`: Implement response for GetMetadata protocol function
```
15 changes: 14 additions & 1 deletion manifest/provider/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,20 @@ func (s *RawProviderServer) PrepareProviderConfig(ctx context.Context, req *tfpr
// GetMetadata function
func (s *RawProviderServer) GetMetadata(ctx context.Context, req *tfprotov5.GetMetadataRequest) (*tfprotov5.GetMetadataResponse, error) {
s.logger.Trace("[GetMetadata][Request]\n%s\n", dump(*req))
resp := &tfprotov5.GetMetadataResponse{}

resp := &tfprotov5.GetMetadataResponse{
Resources: []tfprotov5.ResourceMetadata{{
TypeName: "kubernetes_manifest",
}},
DataSources: []tfprotov5.DataSourceMetadata{
{
TypeName: "kubernetes_resource",
},
{
TypeName: "kubernetes_resources",
},
},
}
return resp, nil
}

Expand Down

0 comments on commit 99a33b6

Please sign in to comment.