Upgrade TF provider to 1.47.0 (#1476)

## Changes

This includes a bugfix for provisioning jobs with `num_workers = 0`.

Fixes #1472.

## Tests

Manually tested this fixes the issue.
This commit is contained in:
Pieter Noordhuis 2024-06-05 13:33:43 +02:00 committed by GitHub
parent 41678fa695
commit 311dfa4642
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 115 additions and 98 deletions

View File

@ -1,3 +1,3 @@
package schema package schema
const ProviderVersion = "1.46.0" const ProviderVersion = "1.47.0"

View File

@ -0,0 +1,12 @@
// Generated from Databricks Terraform provider schema. DO NOT EDIT.
package schema
type DataSourceAwsUnityCatalogAssumeRolePolicy struct {
AwsAccountId string `json:"aws_account_id"`
ExternalId string `json:"external_id"`
Id string `json:"id,omitempty"`
Json string `json:"json,omitempty"`
RoleName string `json:"role_name"`
UnityCatalogIamArn string `json:"unity_catalog_iam_arn,omitempty"`
}

View File

@ -3,105 +3,107 @@
package schema package schema
type DataSources struct { type DataSources struct {
AwsAssumeRolePolicy map[string]any `json:"databricks_aws_assume_role_policy,omitempty"` AwsAssumeRolePolicy map[string]any `json:"databricks_aws_assume_role_policy,omitempty"`
AwsBucketPolicy map[string]any `json:"databricks_aws_bucket_policy,omitempty"` AwsBucketPolicy map[string]any `json:"databricks_aws_bucket_policy,omitempty"`
AwsCrossaccountPolicy map[string]any `json:"databricks_aws_crossaccount_policy,omitempty"` AwsCrossaccountPolicy map[string]any `json:"databricks_aws_crossaccount_policy,omitempty"`
AwsUnityCatalogPolicy map[string]any `json:"databricks_aws_unity_catalog_policy,omitempty"` AwsUnityCatalogAssumeRolePolicy map[string]any `json:"databricks_aws_unity_catalog_assume_role_policy,omitempty"`
Catalog map[string]any `json:"databricks_catalog,omitempty"` AwsUnityCatalogPolicy map[string]any `json:"databricks_aws_unity_catalog_policy,omitempty"`
Catalogs map[string]any `json:"databricks_catalogs,omitempty"` Catalog map[string]any `json:"databricks_catalog,omitempty"`
Cluster map[string]any `json:"databricks_cluster,omitempty"` Catalogs map[string]any `json:"databricks_catalogs,omitempty"`
ClusterPolicy map[string]any `json:"databricks_cluster_policy,omitempty"` Cluster map[string]any `json:"databricks_cluster,omitempty"`
Clusters map[string]any `json:"databricks_clusters,omitempty"` ClusterPolicy map[string]any `json:"databricks_cluster_policy,omitempty"`
CurrentConfig map[string]any `json:"databricks_current_config,omitempty"` Clusters map[string]any `json:"databricks_clusters,omitempty"`
CurrentMetastore map[string]any `json:"databricks_current_metastore,omitempty"` CurrentConfig map[string]any `json:"databricks_current_config,omitempty"`
CurrentUser map[string]any `json:"databricks_current_user,omitempty"` CurrentMetastore map[string]any `json:"databricks_current_metastore,omitempty"`
DbfsFile map[string]any `json:"databricks_dbfs_file,omitempty"` CurrentUser map[string]any `json:"databricks_current_user,omitempty"`
DbfsFilePaths map[string]any `json:"databricks_dbfs_file_paths,omitempty"` DbfsFile map[string]any `json:"databricks_dbfs_file,omitempty"`
Directory map[string]any `json:"databricks_directory,omitempty"` DbfsFilePaths map[string]any `json:"databricks_dbfs_file_paths,omitempty"`
ExternalLocation map[string]any `json:"databricks_external_location,omitempty"` Directory map[string]any `json:"databricks_directory,omitempty"`
ExternalLocations map[string]any `json:"databricks_external_locations,omitempty"` ExternalLocation map[string]any `json:"databricks_external_location,omitempty"`
Group map[string]any `json:"databricks_group,omitempty"` ExternalLocations map[string]any `json:"databricks_external_locations,omitempty"`
InstancePool map[string]any `json:"databricks_instance_pool,omitempty"` Group map[string]any `json:"databricks_group,omitempty"`
InstanceProfiles map[string]any `json:"databricks_instance_profiles,omitempty"` InstancePool map[string]any `json:"databricks_instance_pool,omitempty"`
Job map[string]any `json:"databricks_job,omitempty"` InstanceProfiles map[string]any `json:"databricks_instance_profiles,omitempty"`
Jobs map[string]any `json:"databricks_jobs,omitempty"` Job map[string]any `json:"databricks_job,omitempty"`
Metastore map[string]any `json:"databricks_metastore,omitempty"` Jobs map[string]any `json:"databricks_jobs,omitempty"`
Metastores map[string]any `json:"databricks_metastores,omitempty"` Metastore map[string]any `json:"databricks_metastore,omitempty"`
MlflowExperiment map[string]any `json:"databricks_mlflow_experiment,omitempty"` Metastores map[string]any `json:"databricks_metastores,omitempty"`
MlflowModel map[string]any `json:"databricks_mlflow_model,omitempty"` MlflowExperiment map[string]any `json:"databricks_mlflow_experiment,omitempty"`
MwsCredentials map[string]any `json:"databricks_mws_credentials,omitempty"` MlflowModel map[string]any `json:"databricks_mlflow_model,omitempty"`
MwsWorkspaces map[string]any `json:"databricks_mws_workspaces,omitempty"` MwsCredentials map[string]any `json:"databricks_mws_credentials,omitempty"`
NodeType map[string]any `json:"databricks_node_type,omitempty"` MwsWorkspaces map[string]any `json:"databricks_mws_workspaces,omitempty"`
Notebook map[string]any `json:"databricks_notebook,omitempty"` NodeType map[string]any `json:"databricks_node_type,omitempty"`
NotebookPaths map[string]any `json:"databricks_notebook_paths,omitempty"` Notebook map[string]any `json:"databricks_notebook,omitempty"`
Pipelines map[string]any `json:"databricks_pipelines,omitempty"` NotebookPaths map[string]any `json:"databricks_notebook_paths,omitempty"`
Schemas map[string]any `json:"databricks_schemas,omitempty"` Pipelines map[string]any `json:"databricks_pipelines,omitempty"`
ServicePrincipal map[string]any `json:"databricks_service_principal,omitempty"` Schemas map[string]any `json:"databricks_schemas,omitempty"`
ServicePrincipals map[string]any `json:"databricks_service_principals,omitempty"` ServicePrincipal map[string]any `json:"databricks_service_principal,omitempty"`
Share map[string]any `json:"databricks_share,omitempty"` ServicePrincipals map[string]any `json:"databricks_service_principals,omitempty"`
Shares map[string]any `json:"databricks_shares,omitempty"` Share map[string]any `json:"databricks_share,omitempty"`
SparkVersion map[string]any `json:"databricks_spark_version,omitempty"` Shares map[string]any `json:"databricks_shares,omitempty"`
SqlWarehouse map[string]any `json:"databricks_sql_warehouse,omitempty"` SparkVersion map[string]any `json:"databricks_spark_version,omitempty"`
SqlWarehouses map[string]any `json:"databricks_sql_warehouses,omitempty"` SqlWarehouse map[string]any `json:"databricks_sql_warehouse,omitempty"`
StorageCredential map[string]any `json:"databricks_storage_credential,omitempty"` SqlWarehouses map[string]any `json:"databricks_sql_warehouses,omitempty"`
StorageCredentials map[string]any `json:"databricks_storage_credentials,omitempty"` StorageCredential map[string]any `json:"databricks_storage_credential,omitempty"`
Table map[string]any `json:"databricks_table,omitempty"` StorageCredentials map[string]any `json:"databricks_storage_credentials,omitempty"`
Tables map[string]any `json:"databricks_tables,omitempty"` Table map[string]any `json:"databricks_table,omitempty"`
User map[string]any `json:"databricks_user,omitempty"` Tables map[string]any `json:"databricks_tables,omitempty"`
Views map[string]any `json:"databricks_views,omitempty"` User map[string]any `json:"databricks_user,omitempty"`
Volumes map[string]any `json:"databricks_volumes,omitempty"` Views map[string]any `json:"databricks_views,omitempty"`
Zones map[string]any `json:"databricks_zones,omitempty"` Volumes map[string]any `json:"databricks_volumes,omitempty"`
Zones map[string]any `json:"databricks_zones,omitempty"`
} }
func NewDataSources() *DataSources { func NewDataSources() *DataSources {
return &DataSources{ return &DataSources{
AwsAssumeRolePolicy: make(map[string]any), AwsAssumeRolePolicy: make(map[string]any),
AwsBucketPolicy: make(map[string]any), AwsBucketPolicy: make(map[string]any),
AwsCrossaccountPolicy: make(map[string]any), AwsCrossaccountPolicy: make(map[string]any),
AwsUnityCatalogPolicy: make(map[string]any), AwsUnityCatalogAssumeRolePolicy: make(map[string]any),
Catalog: make(map[string]any), AwsUnityCatalogPolicy: make(map[string]any),
Catalogs: make(map[string]any), Catalog: make(map[string]any),
Cluster: make(map[string]any), Catalogs: make(map[string]any),
ClusterPolicy: make(map[string]any), Cluster: make(map[string]any),
Clusters: make(map[string]any), ClusterPolicy: make(map[string]any),
CurrentConfig: make(map[string]any), Clusters: make(map[string]any),
CurrentMetastore: make(map[string]any), CurrentConfig: make(map[string]any),
CurrentUser: make(map[string]any), CurrentMetastore: make(map[string]any),
DbfsFile: make(map[string]any), CurrentUser: make(map[string]any),
DbfsFilePaths: make(map[string]any), DbfsFile: make(map[string]any),
Directory: make(map[string]any), DbfsFilePaths: make(map[string]any),
ExternalLocation: make(map[string]any), Directory: make(map[string]any),
ExternalLocations: make(map[string]any), ExternalLocation: make(map[string]any),
Group: make(map[string]any), ExternalLocations: make(map[string]any),
InstancePool: make(map[string]any), Group: make(map[string]any),
InstanceProfiles: make(map[string]any), InstancePool: make(map[string]any),
Job: make(map[string]any), InstanceProfiles: make(map[string]any),
Jobs: make(map[string]any), Job: make(map[string]any),
Metastore: make(map[string]any), Jobs: make(map[string]any),
Metastores: make(map[string]any), Metastore: make(map[string]any),
MlflowExperiment: make(map[string]any), Metastores: make(map[string]any),
MlflowModel: make(map[string]any), MlflowExperiment: make(map[string]any),
MwsCredentials: make(map[string]any), MlflowModel: make(map[string]any),
MwsWorkspaces: make(map[string]any), MwsCredentials: make(map[string]any),
NodeType: make(map[string]any), MwsWorkspaces: make(map[string]any),
Notebook: make(map[string]any), NodeType: make(map[string]any),
NotebookPaths: make(map[string]any), Notebook: make(map[string]any),
Pipelines: make(map[string]any), NotebookPaths: make(map[string]any),
Schemas: make(map[string]any), Pipelines: make(map[string]any),
ServicePrincipal: make(map[string]any), Schemas: make(map[string]any),
ServicePrincipals: make(map[string]any), ServicePrincipal: make(map[string]any),
Share: make(map[string]any), ServicePrincipals: make(map[string]any),
Shares: make(map[string]any), Share: make(map[string]any),
SparkVersion: make(map[string]any), Shares: make(map[string]any),
SqlWarehouse: make(map[string]any), SparkVersion: make(map[string]any),
SqlWarehouses: make(map[string]any), SqlWarehouse: make(map[string]any),
StorageCredential: make(map[string]any), SqlWarehouses: make(map[string]any),
StorageCredentials: make(map[string]any), StorageCredential: make(map[string]any),
Table: make(map[string]any), StorageCredentials: make(map[string]any),
Tables: make(map[string]any), Table: make(map[string]any),
User: make(map[string]any), Tables: make(map[string]any),
Views: make(map[string]any), User: make(map[string]any),
Volumes: make(map[string]any), Views: make(map[string]any),
Zones: make(map[string]any), Volumes: make(map[string]any),
Zones: make(map[string]any),
} }
} }

View File

@ -43,6 +43,7 @@ type ResourceMwsWorkspaces struct {
CustomTags map[string]string `json:"custom_tags,omitempty"` CustomTags map[string]string `json:"custom_tags,omitempty"`
CustomerManagedKeyId string `json:"customer_managed_key_id,omitempty"` CustomerManagedKeyId string `json:"customer_managed_key_id,omitempty"`
DeploymentName string `json:"deployment_name,omitempty"` DeploymentName string `json:"deployment_name,omitempty"`
GcpWorkspaceSa string `json:"gcp_workspace_sa,omitempty"`
Id string `json:"id,omitempty"` Id string `json:"id,omitempty"`
IsNoPublicIpEnabled bool `json:"is_no_public_ip_enabled,omitempty"` IsNoPublicIpEnabled bool `json:"is_no_public_ip_enabled,omitempty"`
Location string `json:"location,omitempty"` Location string `json:"location,omitempty"`

View File

@ -41,6 +41,7 @@ type ResourceStorageCredential struct {
Owner string `json:"owner,omitempty"` Owner string `json:"owner,omitempty"`
ReadOnly bool `json:"read_only,omitempty"` ReadOnly bool `json:"read_only,omitempty"`
SkipValidation bool `json:"skip_validation,omitempty"` SkipValidation bool `json:"skip_validation,omitempty"`
StorageCredentialId string `json:"storage_credential_id,omitempty"`
AwsIamRole *ResourceStorageCredentialAwsIamRole `json:"aws_iam_role,omitempty"` AwsIamRole *ResourceStorageCredentialAwsIamRole `json:"aws_iam_role,omitempty"`
AzureManagedIdentity *ResourceStorageCredentialAzureManagedIdentity `json:"azure_managed_identity,omitempty"` AzureManagedIdentity *ResourceStorageCredentialAzureManagedIdentity `json:"azure_managed_identity,omitempty"`
AzureServicePrincipal *ResourceStorageCredentialAzureServicePrincipal `json:"azure_service_principal,omitempty"` AzureServicePrincipal *ResourceStorageCredentialAzureServicePrincipal `json:"azure_service_principal,omitempty"`

View File

@ -3,6 +3,7 @@
package schema package schema
type ResourceSystemSchema struct { type ResourceSystemSchema struct {
FullName string `json:"full_name,omitempty"`
Id string `json:"id,omitempty"` Id string `json:"id,omitempty"`
MetastoreId string `json:"metastore_id,omitempty"` MetastoreId string `json:"metastore_id,omitempty"`
Schema string `json:"schema,omitempty"` Schema string `json:"schema,omitempty"`

View File

@ -21,7 +21,7 @@ type Root struct {
const ProviderHost = "registry.terraform.io" const ProviderHost = "registry.terraform.io"
const ProviderSource = "databricks/databricks" const ProviderSource = "databricks/databricks"
const ProviderVersion = "1.46.0" const ProviderVersion = "1.47.0"
func NewRoot() *Root { func NewRoot() *Root {
return &Root{ return &Root{