diff --git a/provider/provider_factory.go b/provider/provider_factory.go index d19542c74e..195abf4347 100644 --- a/provider/provider_factory.go +++ b/provider/provider_factory.go @@ -10,6 +10,14 @@ import ( "github.com/hashicorp/terraform-plugin-mux/tf6muxserver" ) +// GetProviderServer initializes and returns a Terraform Protocol v6 ProviderServer. +// The function begins by initializing the Databricks provider using the SDK plugin +// and then upgrades this provider to be compatible with Terraform's Protocol v6 using +// the v5-to-v6 upgrade mechanism. Additionally, it retrieves the Databricks provider +// that is implemented using the Terraform Plugin Framework. These different provider +// implementations are then combined using a multiplexing server, which allows multiple +// Protocol v6 providers to be served together. The function returns the multiplexed +// ProviderServer, or an error if any part of the process fails. func GetProviderServer(ctx context.Context) (tfprotov6.ProviderServer, error) { sdkPluginProvider := DatabricksProvider()