You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to consider the use of schema.Resource.SchemaVersion on terraform-provider-vinyldns resources such that schema.Resource.StateUpgraders could be leveraged to upgrade existing users' tfstate when schema semantics change such that users can easily adopt new versions of the provider.
// StateUpgraders contains the functions responsible for upgrading an
// existing state with an old schema version to a newer schema. It is
// called specifically by Terraform when the stored schema version is less
// than the current SchemaVersion of the Resource.
//
// StateUpgraders map specific schema versions to a StateUpgrader
// function. The registered versions are expected to be ordered,
// consecutive values. The initial value may be greater than 0 to account
// for legacy schemas that weren't recorded and can be handled by
// MigrateState.
StateUpgraders []StateUpgrader
The text was updated successfully, but these errors were encountered:
It would be useful to consider the use of
schema.Resource.SchemaVersion
onterraform-provider-vinyldns
resources such thatschema.Resource.StateUpgraders
could be leveraged to upgrade existing users' tfstate when schema semantics change such that users can easily adopt new versions of the provider.More can be read here:
The text was updated successfully, but these errors were encountered: