Skip to content

Commit 665fbf5

Browse files
committed
Satisfy provider protocol requirements for Terraform >= v1.21.1
1 parent 4fec73e commit 665fbf5

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require (
1414
github.com/hashicorp/terraform-exec v0.23.0
1515
github.com/hashicorp/terraform-json v0.25.0
1616
github.com/hashicorp/terraform-plugin-docs v0.16.0
17-
github.com/hashicorp/terraform-plugin-framework v1.13.0
17+
github.com/hashicorp/terraform-plugin-framework v1.15.0
1818
github.com/hashicorp/terraform-plugin-go v0.27.0
1919
github.com/hashicorp/terraform-plugin-log v0.9.0
2020
github.com/hashicorp/terraform-plugin-mux v0.19.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ github.com/hashicorp/terraform-json v0.25.0 h1:rmNqc/CIfcWawGiwXmRuiXJKEiJu1ntGo
181181
github.com/hashicorp/terraform-json v0.25.0/go.mod h1:sMKS8fiRDX4rVlR6EJUMudg1WcanxCMoWwTLkgZP/vc=
182182
github.com/hashicorp/terraform-plugin-docs v0.16.0 h1:UmxFr3AScl6Wged84jndJIfFccGyBZn52KtMNsS12dI=
183183
github.com/hashicorp/terraform-plugin-docs v0.16.0/go.mod h1:M3ZrlKBJAbPMtNOPwHicGi1c+hZUh7/g0ifT/z7TVfA=
184-
github.com/hashicorp/terraform-plugin-framework v1.13.0 h1:8OTG4+oZUfKgnfTdPTJwZ532Bh2BobF4H+yBiYJ/scw=
185-
github.com/hashicorp/terraform-plugin-framework v1.13.0/go.mod h1:j64rwMGpgM3NYXTKuxrCnyubQb/4VKldEKlcG8cvmjU=
184+
github.com/hashicorp/terraform-plugin-framework v1.15.0 h1:LQ2rsOfmDLxcn5EeIwdXFtr03FVsNktbbBci8cOKdb4=
185+
github.com/hashicorp/terraform-plugin-framework v1.15.0/go.mod h1:hxrNI/GY32KPISpWqlCoTLM9JZsGH3CyYlir09bD/fI=
186186
github.com/hashicorp/terraform-plugin-go v0.27.0 h1:ujykws/fWIdsi6oTUT5Or4ukvEan4aN9lY+LOxVP8EE=
187187
github.com/hashicorp/terraform-plugin-go v0.27.0/go.mod h1:FDa2Bb3uumkTGSkTFpWSOwWJDwA7bf3vdP3ltLDTH6o=
188188
github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0=

manifest/provider/server.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ func init() {
2323
install.Install(scheme.Scheme)
2424
}
2525

26+
var _ tfprotov5.ProviderServer = &RawProviderServer{}
27+
2628
// RawProviderServer implements the ProviderServer interface as exported from ProtoBuf.
2729
type RawProviderServer struct {
2830
// Since the provider is essentially a gRPC server, the execution flow is dictated by the order of the client (Terraform) request calls.
@@ -132,3 +134,15 @@ func (s *RawProviderServer) ValidateEphemeralResourceConfig(ctx context.Context,
132134
resp := &tfprotov5.ValidateEphemeralResourceConfigResponse{}
133135
return resp, nil
134136
}
137+
138+
func (s *RawProviderServer) GetResourceIdentitySchemas(ctx context.Context, req *tfprotov5.GetResourceIdentitySchemasRequest) (*tfprotov5.GetResourceIdentitySchemasResponse, error) {
139+
s.logger.Trace("[GetResourceIdentitySchemas][Request]\n%s\n", dump(*req))
140+
resp := &tfprotov5.GetResourceIdentitySchemasResponse{}
141+
return resp, nil
142+
}
143+
144+
func (s *RawProviderServer) UpgradeResourceIdentity(ctx context.Context, req *tfprotov5.UpgradeResourceIdentityRequest) (*tfprotov5.UpgradeResourceIdentityResponse, error) {
145+
s.logger.Trace("[UpgradeResourceIdentity][Request]\n%s\n", dump(*req))
146+
resp := &tfprotov5.UpgradeResourceIdentityResponse{}
147+
return resp, nil
148+
}

0 commit comments

Comments
 (0)