NOTES:
- tfsdk: Providers may now optionally remove
RemoveResource()
calls fromResource
typeDelete
methods (#301) - tfsdk: The
NewProtocol6Server()
function has been deprecated in preference ofproviderserver.NewProtocol6()
andproviderserver.NewProtocol6WithError()
functions, which will simplify muxing and testing implementations. Thetfsdk.NewProtocol6Server()
function will be removed in the next minor version. (#308) - tfsdk: The
ResourceImportStateNotImplemented()
function has been deprecated. Instead, theImportState
method can be removed from theResource
and the framework will automatically return an error diagnostic if import is attempted. (#297) - tfsdk: The
Resource
interface no longer requires theImportState
method. A separateResourceWithImportState
interface now defines the sameImportState
method. (#297) - tfsdk: The
Serve()
function has been deprecated in preference of theproviderserver.Serve()
function. Thetfsdk.Serve()
function will be removed in the next minor version. (#308) - tfsdk: The
ServeOpts
type has been deprecated in preference of theproviderserver.ServeOpts
type. When migrating, theName
field has been replaced withAddress
. Thetfsdk.ServeOpts
type will be removed in the next minor version. (#308) - tfsdk: The previously unexported
server
type has been temporarily exported to aid in the migration to the newproviderserver
package. It is not intended for provider developer usage and will be moved into an internal package in the next minor version. (#308)
FEATURES:
- Introduced
providerserver
package, which contains all functions and types necessary for serving a provider in production or acceptance testing. (#308) - tfsdk: Added optional
ResourceWithUpgradeState
interface, which allows for provider defined logic when theUpgradeResourceState
RPC is called (#292)
ENHANCEMENTS:
- tfsdk: Added
DEBUG
level logging for all framework handoffs to provider defined logic (#300) - tfsdk: Added
ResourceWithImportState
interface, which allowsResource
implementations to optionally define theImportState
method. (#297) - tfsdk: Added automatic
(DeleteResourceResponse.State).RemoveResource()
call afterResource
typeDelete
method execution if there are no errors (#301)