mirror of https://github.com/databricks/cli.git
Upgrade to TF provider 1.65.1 (#2328)
## Changes Upgrade to TF provider 1.65.1 Notable changes: - Now it's possible to use `run_as` field in `pipelines` definition - Added support for `performance_target` for `jobs`
This commit is contained in:
parent
4bc231ad4f
commit
f7a45d0c7e
|
@ -2,7 +2,7 @@ terraform {
|
|||
required_providers {
|
||||
databricks = {
|
||||
source = "databricks/databricks"
|
||||
version = "1.64.1"
|
||||
version = "1.65.1"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
Initializing the backend...
|
||||
|
||||
Initializing provider plugins...
|
||||
- Finding databricks/databricks versions matching "1.64.1"...
|
||||
- Installing databricks/databricks v1.64.1...
|
||||
- Installed databricks/databricks v1.64.1 (unauthenticated)
|
||||
- Finding databricks/databricks versions matching "1.65.1"...
|
||||
- Installing databricks/databricks v1.65.1...
|
||||
- Installed databricks/databricks v1.65.1 (unauthenticated)
|
||||
|
||||
Terraform has created a lock file .terraform.lock.hcl to record the provider
|
||||
selections it made above. Include this file in your version control repository
|
||||
|
|
|
@ -122,6 +122,9 @@ func TestConvertPipeline(t *testing.T) {
|
|||
"num_workers": int64(1),
|
||||
},
|
||||
},
|
||||
"run_as": map[string]any{
|
||||
"user_name": "foo@bar.com",
|
||||
},
|
||||
}, out.Pipeline["my_pipeline"])
|
||||
|
||||
// Assert equality on the permissions
|
||||
|
|
|
@ -19,3 +19,6 @@ How to regenerate Go structs from an updated terraform provider?
|
|||
2. Delete `./tmp` if it exists
|
||||
3. Run `go run .`
|
||||
4. Run `gofmt -s -w ../schema`
|
||||
5. Go back to the root of the repo.
|
||||
6. Update `/acceptance/terraform/main.tf` file to use new version of TF provider
|
||||
7. Run `go test ./acceptance -v -update -run TestAccept/terraform` to update test output with a new version of TF provider
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
package schema
|
||||
|
||||
const ProviderVersion = "1.64.1"
|
||||
const ProviderVersion = "1.65.1"
|
||||
|
|
|
@ -28,7 +28,6 @@ type DataSourceCatalogCatalogInfo struct {
|
|||
Owner string `json:"owner,omitempty"`
|
||||
Properties map[string]string `json:"properties,omitempty"`
|
||||
ProviderName string `json:"provider_name,omitempty"`
|
||||
SecurableKind string `json:"securable_kind,omitempty"`
|
||||
SecurableType string `json:"securable_type,omitempty"`
|
||||
ShareName string `json:"share_name,omitempty"`
|
||||
StorageLocation string `json:"storage_location,omitempty"`
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
// Generated from Databricks Terraform provider schema. DO NOT EDIT.
|
||||
|
||||
package schema
|
||||
|
||||
type ResourceAibiDashboardEmbeddingAccessPolicySettingAibiDashboardEmbeddingAccessPolicy struct {
|
||||
AccessPolicyType string `json:"access_policy_type"`
|
||||
}
|
||||
|
||||
type ResourceAibiDashboardEmbeddingAccessPolicySetting struct {
|
||||
Etag string `json:"etag,omitempty"`
|
||||
Id string `json:"id,omitempty"`
|
||||
SettingName string `json:"setting_name,omitempty"`
|
||||
AibiDashboardEmbeddingAccessPolicy *ResourceAibiDashboardEmbeddingAccessPolicySettingAibiDashboardEmbeddingAccessPolicy `json:"aibi_dashboard_embedding_access_policy,omitempty"`
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
// Generated from Databricks Terraform provider schema. DO NOT EDIT.
|
||||
|
||||
package schema
|
||||
|
||||
type ResourceAibiDashboardEmbeddingApprovedDomainsSettingAibiDashboardEmbeddingApprovedDomains struct {
|
||||
ApprovedDomains []string `json:"approved_domains"`
|
||||
}
|
||||
|
||||
type ResourceAibiDashboardEmbeddingApprovedDomainsSetting struct {
|
||||
Etag string `json:"etag,omitempty"`
|
||||
Id string `json:"id,omitempty"`
|
||||
SettingName string `json:"setting_name,omitempty"`
|
||||
AibiDashboardEmbeddingApprovedDomains *ResourceAibiDashboardEmbeddingApprovedDomainsSettingAibiDashboardEmbeddingApprovedDomains `json:"aibi_dashboard_embedding_approved_domains,omitempty"`
|
||||
}
|
|
@ -19,5 +19,6 @@ type ResourceCustomAppIntegration struct {
|
|||
Name string `json:"name,omitempty"`
|
||||
RedirectUrls []string `json:"redirect_urls,omitempty"`
|
||||
Scopes []string `json:"scopes,omitempty"`
|
||||
UserAuthorizedScopes []string `json:"user_authorized_scopes,omitempty"`
|
||||
TokenAccessPolicy *ResourceCustomAppIntegrationTokenAccessPolicy `json:"token_access_policy,omitempty"`
|
||||
}
|
||||
|
|
|
@ -1489,6 +1489,7 @@ type ResourceJob struct {
|
|||
MaxRetries int `json:"max_retries,omitempty"`
|
||||
MinRetryIntervalMillis int `json:"min_retry_interval_millis,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
PerformanceTarget string `json:"performance_target,omitempty"`
|
||||
RetryOnTimeout bool `json:"retry_on_timeout,omitempty"`
|
||||
Tags map[string]string `json:"tags,omitempty"`
|
||||
TimeoutSeconds int `json:"timeout_seconds,omitempty"`
|
||||
|
|
|
@ -249,6 +249,11 @@ type ResourcePipelineRestartWindow struct {
|
|||
TimeZoneId string `json:"time_zone_id,omitempty"`
|
||||
}
|
||||
|
||||
type ResourcePipelineRunAs struct {
|
||||
ServicePrincipalName string `json:"service_principal_name,omitempty"`
|
||||
UserName string `json:"user_name,omitempty"`
|
||||
}
|
||||
|
||||
type ResourcePipelineTriggerCron struct {
|
||||
QuartzCronSchedule string `json:"quartz_cron_schedule,omitempty"`
|
||||
TimezoneId string `json:"timezone_id,omitempty"`
|
||||
|
@ -296,5 +301,6 @@ type ResourcePipeline struct {
|
|||
Library []ResourcePipelineLibrary `json:"library,omitempty"`
|
||||
Notification []ResourcePipelineNotification `json:"notification,omitempty"`
|
||||
RestartWindow *ResourcePipelineRestartWindow `json:"restart_window,omitempty"`
|
||||
RunAs *ResourcePipelineRunAs `json:"run_as,omitempty"`
|
||||
Trigger *ResourcePipelineTrigger `json:"trigger,omitempty"`
|
||||
}
|
||||
|
|
|
@ -4,6 +4,8 @@ package schema
|
|||
|
||||
type Resources struct {
|
||||
AccessControlRuleSet map[string]any `json:"databricks_access_control_rule_set,omitempty"`
|
||||
AibiDashboardEmbeddingAccessPolicySetting map[string]any `json:"databricks_aibi_dashboard_embedding_access_policy_setting,omitempty"`
|
||||
AibiDashboardEmbeddingApprovedDomainsSetting map[string]any `json:"databricks_aibi_dashboard_embedding_approved_domains_setting,omitempty"`
|
||||
Alert map[string]any `json:"databricks_alert,omitempty"`
|
||||
App map[string]any `json:"databricks_app,omitempty"`
|
||||
ArtifactAllowlist map[string]any `json:"databricks_artifact_allowlist,omitempty"`
|
||||
|
@ -112,6 +114,8 @@ type Resources struct {
|
|||
func NewResources() *Resources {
|
||||
return &Resources{
|
||||
AccessControlRuleSet: make(map[string]any),
|
||||
AibiDashboardEmbeddingAccessPolicySetting: make(map[string]any),
|
||||
AibiDashboardEmbeddingApprovedDomainsSetting: make(map[string]any),
|
||||
Alert: make(map[string]any),
|
||||
App: make(map[string]any),
|
||||
ArtifactAllowlist: make(map[string]any),
|
||||
|
|
|
@ -21,7 +21,7 @@ type Root struct {
|
|||
|
||||
const ProviderHost = "registry.terraform.io"
|
||||
const ProviderSource = "databricks/databricks"
|
||||
const ProviderVersion = "1.64.1"
|
||||
const ProviderVersion = "1.65.1"
|
||||
|
||||
func NewRoot() *Root {
|
||||
return &Root{
|
||||
|
|
Loading…
Reference in New Issue