Skip to content

Commit 8bd43f8

Browse files
Merge branch 'main' into fix/deleting-wait
2 parents 8a98365 + 2a082bd commit 8bd43f8

File tree

133 files changed

+12916
-1398
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+12916
-1398
lines changed

.codegen/_openapi_sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
59c4c0f3d5f0ef00cd5350b5674e941a7606d91a
1+
8b2cd47cbac64b32e120601110a5fc70b8189ba4

.gitattributes

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ docs/data-sources/external_metadata.md linguist-generated=true
3434
docs/data-sources/external_metadatas.md linguist-generated=true
3535
docs/data-sources/feature_engineering_feature.md linguist-generated=true
3636
docs/data-sources/feature_engineering_features.md linguist-generated=true
37+
docs/data-sources/feature_engineering_kafka_config.md linguist-generated=true
38+
docs/data-sources/feature_engineering_kafka_configs.md linguist-generated=true
3739
docs/data-sources/feature_engineering_materialized_feature.md linguist-generated=true
3840
docs/data-sources/feature_engineering_materialized_features.md linguist-generated=true
3941
docs/data-sources/materialized_features_feature_tag.md linguist-generated=true
@@ -49,6 +51,8 @@ docs/data-sources/service_principal_federation_policies.md linguist-generated=tr
4951
docs/data-sources/service_principal_federation_policy.md linguist-generated=true
5052
docs/data-sources/tag_policies.md linguist-generated=true
5153
docs/data-sources/tag_policy.md linguist-generated=true
54+
docs/data-sources/workspace_entity_tag_assignment.md linguist-generated=true
55+
docs/data-sources/workspace_entity_tag_assignments.md linguist-generated=true
5256
docs/data-sources/workspace_network_option.md linguist-generated=true
5357
docs/data-sources/workspace_setting_v2.md linguist-generated=true
5458
docs/resources/account_federation_policy.md linguist-generated=true
@@ -65,6 +69,7 @@ docs/resources/database_synced_database_table.md linguist-generated=true
6569
docs/resources/entity_tag_assignment.md linguist-generated=true
6670
docs/resources/external_metadata.md linguist-generated=true
6771
docs/resources/feature_engineering_feature.md linguist-generated=true
72+
docs/resources/feature_engineering_kafka_config.md linguist-generated=true
6873
docs/resources/feature_engineering_materialized_feature.md linguist-generated=true
6974
docs/resources/materialized_features_feature_tag.md linguist-generated=true
7075
docs/resources/online_store.md linguist-generated=true
@@ -73,6 +78,7 @@ docs/resources/quality_monitor_v2.md linguist-generated=true
7378
docs/resources/rfa_access_request_destinations.md linguist-generated=true
7479
docs/resources/service_principal_federation_policy.md linguist-generated=true
7580
docs/resources/tag_policy.md linguist-generated=true
81+
docs/resources/workspace_entity_tag_assignment.md linguist-generated=true
7682
docs/resources/workspace_network_option.md linguist-generated=true
7783
docs/resources/workspace_setting_v2.md linguist-generated=true
7884
internal/providers/common/common.go linguist-generated=true
@@ -127,6 +133,9 @@ internal/providers/pluginfw/products/external_metadata/resource_external_metadat
127133
internal/providers/pluginfw/products/feature_engineering_feature/data_feature_engineering_feature.go linguist-generated=true
128134
internal/providers/pluginfw/products/feature_engineering_feature/data_feature_engineering_features.go linguist-generated=true
129135
internal/providers/pluginfw/products/feature_engineering_feature/resource_feature_engineering_feature.go linguist-generated=true
136+
internal/providers/pluginfw/products/feature_engineering_kafka_config/data_feature_engineering_kafka_config.go linguist-generated=true
137+
internal/providers/pluginfw/products/feature_engineering_kafka_config/data_feature_engineering_kafka_configs.go linguist-generated=true
138+
internal/providers/pluginfw/products/feature_engineering_kafka_config/resource_feature_engineering_kafka_config.go linguist-generated=true
130139
internal/providers/pluginfw/products/feature_engineering_materialized_feature/data_feature_engineering_materialized_feature.go linguist-generated=true
131140
internal/providers/pluginfw/products/feature_engineering_materialized_feature/data_feature_engineering_materialized_features.go linguist-generated=true
132141
internal/providers/pluginfw/products/feature_engineering_materialized_feature/resource_feature_engineering_materialized_feature.go linguist-generated=true
@@ -150,6 +159,9 @@ internal/providers/pluginfw/products/service_principal_federation_policy/resourc
150159
internal/providers/pluginfw/products/tag_policy/data_tag_policies.go linguist-generated=true
151160
internal/providers/pluginfw/products/tag_policy/data_tag_policy.go linguist-generated=true
152161
internal/providers/pluginfw/products/tag_policy/resource_tag_policy.go linguist-generated=true
162+
internal/providers/pluginfw/products/workspace_entity_tag_assignment/data_workspace_entity_tag_assignment.go linguist-generated=true
163+
internal/providers/pluginfw/products/workspace_entity_tag_assignment/data_workspace_entity_tag_assignments.go linguist-generated=true
164+
internal/providers/pluginfw/products/workspace_entity_tag_assignment/resource_workspace_entity_tag_assignment.go linguist-generated=true
153165
internal/providers/pluginfw/products/workspace_network_option/data_workspace_network_option.go linguist-generated=true
154166
internal/providers/pluginfw/products/workspace_network_option/resource_workspace_network_option.go linguist-generated=true
155167
internal/providers/pluginfw/products/workspace_setting_v2/data_workspace_setting_v2.go linguist-generated=true

.github/workflows/integration-tests.yml

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020
outputs:
2121
has_token: ${{ steps.set-token-status.outputs.has_token }}
2222
steps:
23-
- name: Check if DECO_WORKFLOW_TRIGGER_APP_ID is set
23+
- name: Check if required secrets are set
2424
id: set-token-status
2525
run: |
26-
if [ -z "${{ secrets.DECO_WORKFLOW_TRIGGER_APP_ID }}" ]; then
27-
echo "DECO_WORKFLOW_TRIGGER_APP_ID is empty. User has no access to secrets."
26+
if [ -z "${{ secrets.DECO_WORKFLOW_TRIGGER_APP_ID }}" ] || [ -z "${{ secrets.DECO_TEST_APPROVAL_APP_ID }}" ]; then
27+
echo "Required secrets are missing. User has no access to secrets."
2828
echo "::set-output name=has_token::false"
2929
else
30-
echo "DECO_WORKFLOW_TRIGGER_APP_ID is set. User has access to secrets."
30+
echo "All required secrets are set. User has access to secrets."
3131
echo "::set-output name=has_token::true"
3232
fi
3333
@@ -45,7 +45,7 @@ jobs:
4545
steps:
4646
- uses: actions/checkout@v3
4747

48-
- name: Generate GitHub App Token
48+
- name: Generate GitHub App Token for Workflow Trigger
4949
id: generate-token
5050
uses: actions/create-github-app-token@v1
5151
with:
@@ -79,14 +79,24 @@ jobs:
7979
group: databricks-deco-testing-runner-group
8080
labels: ubuntu-latest-deco
8181

82+
permissions:
83+
checks: write
84+
contents: read
85+
8286
steps:
83-
- name: Mark Check
84-
env:
85-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86-
shell: bash
87-
run: |
88-
gh api -X POST -H "Accept: application/vnd.github+json" \
89-
-H "X-GitHub-Api-Version: 2022-11-28" \
90-
/repos/${{ github.repository }}/statuses/${{ github.sha }} \
91-
-f 'state=success' \
92-
-f 'context=Integration Tests Check'
87+
- name: Auto-approve Check for Merge Queue
88+
uses: actions/github-script@v7
89+
with:
90+
script: |
91+
await github.rest.checks.create({
92+
owner: context.repo.owner,
93+
repo: context.repo.repo,
94+
name: 'Integration Tests',
95+
head_sha: context.sha,
96+
status: 'completed',
97+
conclusion: 'success',
98+
output: {
99+
title: 'Integration Tests',
100+
summary: 'Auto-approved for merge queue (tests already passed on PR)'
101+
}
102+
});

.release_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"timestamp": "2025-11-06 13:49:08+0000"
2+
"timestamp": "2025-12-04 11:46:28+0000"
33
}

CHANGELOG.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,55 @@
11
# Version changelog
22

3+
## Release v1.99.0 (2025-12-04)
4+
5+
### New Features and Improvements
6+
* Added `databricks_workspace_entity_tag_assignment` resource and data source ([#5252](https://github.com/databricks/terraform-provider-databricks/pull/5252))
7+
8+
### Internal Changes
9+
* Update Go SDK to v0.93.0 ([#5252](https://github.com/databricks/terraform-provider-databricks/pull/5252))
10+
* Bump github.com/hashicorp/terraform-plugin-testing from 1.13.3 to 1.14.0 ([#5254](https://github.com/databricks/terraform-provider-databricks/pull/5254))
11+
* Bump google.golang.org/api from 0.256.0 to 0.257.0 ([#5253](https://github.com/databricks/terraform-provider-databricks/pull/5253))
12+
13+
14+
## Release v1.98.0 (2025-12-03)
15+
16+
### New Features and Improvements
17+
18+
* Relaxed `force_new` constraint on `catalog` attribute in `databricks_pipeline` resource to allow changing the default catalog for existing pipelines ([#5180](https://github.com/databricks/terraform-provider-databricks/issues/5180)).
19+
* Add `databricks_users` data source ([#4028](https://github.com/databricks/terraform-provider-databricks/pull/4028))
20+
* Improve `databricks_service_principals` data source ([#5164](https://github.com/databricks/terraform-provider-databricks/pull/5164))
21+
* Add `feature_engineering_kafka_config` resource and data source ([#5240](https://github.com/databricks/terraform-provider-databricks/pull/5240))
22+
23+
### Bug Fixes
24+
25+
* Fix spurious plan diffs in `databricks_model_serving` and `databricks_model_serving_provisioned_throughput` resources due to tag reordering ([#5120](https://github.com/databricks/terraform-provider-databricks/pull/5120))
26+
* Move Spark Version selector defaults to Terraform ([#5219](https://github.com/databricks/terraform-provider-databricks/pull/5219)).
27+
28+
### Documentation
29+
30+
* Document tag policies in `databricks_access_control_rule_set` ([#5209](https://github.com/databricks/terraform-provider-databricks/pull/5209)).
31+
* Document missing `aws_attributes.ebs_*` properties in `databricks_cluster` ([#5196](https://github.com/databricks/terraform-provider-databricks/pull/5196)).
32+
* Document support for serverless workspaces on GCP ([#5124](https://github.com/databricks/terraform-provider-databricks/pull/5124))
33+
* Document data object types for share resource ([#5244](https://github.com/databricks/terraform-provider-databricks/pull/5244))
34+
35+
### Exporter
36+
37+
* Added support for `databricks_data_quality_monitor` resource ([#5193](https://github.com/databricks/terraform-provider-databricks/pull/5193)).
38+
* Added support for `databricks_account_federation_policy`, `databricks_custom_app_integration`, `databricks_quality_monitor_v2`, `databricks_service_principal_federation_policy` resources ([#5237](https://github.com/databricks/terraform-provider-databricks/pull/5237)).
39+
* Added support for `databricks_budget_policy` resource ([#5217](https://github.com/databricks/terraform-provider-databricks/pull/5217)).
40+
* Fix typo in the name of environment variable ([#5158](https://github.com/databricks/terraform-provider-databricks/pull/5158)).
41+
* Export permission assignments on workspace level ([#5169](https://github.com/databricks/terraform-provider-databricks/pull/5169)).
42+
* Added support for UC Tag policies ([#5213](https://github.com/databricks/terraform-provider-databricks/pull/5213)).
43+
* Added support for Databricks Apps resources ([#5208](https://github.com/databricks/terraform-provider-databricks/pull/5208)).
44+
* Added support for Database Instance resource (aka Lakebase) ([#5212](https://github.com/databricks/terraform-provider-databricks/pull/5212)).
45+
* Added support for workspace and account settings v2 ([#5230](https://github.com/databricks/terraform-provider-databricks/pull/5230)).
46+
47+
### Internal Changes
48+
49+
* Update Go SDK to v0.92.0 ([#5240](https://github.com/databricks/terraform-provider-databricks/pull/5240))
50+
* Bump github.com/hashicorp/terraform-plugin-framework from 1.16.1 to 1.17.0 ([#5247](https://github.com/databricks/terraform-provider-databricks/pull/5247))
51+
52+
353
## Release v1.97.0 (2025-11-06)
454

555
### Bug Fixes

NEXT_CHANGELOG.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
11
# NEXT CHANGELOG
22

3-
## Release v1.98.0
3+
## Release v1.100.0
44

55
### Breaking Changes
66

77
### New Features and Improvements
88

9-
* Add `databricks_users` data source ([#4028](https://github.com/databricks/terraform-provider-databricks/pull/4028))
10-
* Improve `databricks_service_principals` data source ([#5164](https://github.com/databricks/terraform-provider-databricks/pull/5164))
9+
* Recreate `databricks_credential` on the `name` change ([#5248](https://github.com/databricks/terraform-provider-databricks/pull/5248)).
1110

1211
### Bug Fixes
1312

14-
* Fix spurious plan diffs in `databricks_model_serving` and `databricks_model_serving_provisioned_throughput` resources due to tag reordering ([#5120](https://github.com/databricks/terraform-provider-databricks/pull/5120))
13+
* Fix retrieving of latest DBR versions in `databricks_spark_version` ([#5255](https://github.com/databricks/terraform-provider-databricks/pull/5255))
1514

1615
### Documentation
1716

1817
### Exporter
1918

20-
* Added support for `databricks_data_quality_monitor` resource ([#5193](https://github.com/databricks/terraform-provider-databricks/pull/5193)).
21-
* Fix typo in the name of environment variable ([#5158](https://github.com/databricks/terraform-provider-databricks/pull/5158)).
22-
* Export permission assignments on workspace level ([#5169](https://github.com/databricks/terraform-provider-databricks/pull/5169)).
23-
* Added support for Databricks Apps resources ([#5208](https://github.com/databricks/terraform-provider-databricks/pull/5208)).
24-
2519
### Internal Changes

catalog/resource_catalog.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ func ResourceCatalog() common.Resource {
116116
if err != nil {
117117
return err
118118
}
119+
var origCatalogData catalog.CatalogInfo
120+
common.DataToStructPointer(d, catalogSchema, &origCatalogData)
121+
if (origCatalogData.ShareName != "" || origCatalogData.ConnectionName != "" || origCatalogData.ProviderName != "") &&
122+
string(origCatalogData.EnablePredictiveOptimization) == "" {
123+
ci.EnablePredictiveOptimization = origCatalogData.EnablePredictiveOptimization
124+
}
119125
return common.StructToData(ci, catalogSchema, d)
120126
},
121127
Update: func(ctx context.Context, d *schema.ResourceData, c *common.DatabricksClient) error {

catalog/resource_credential.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var credentialSchema = common.StructToSchema(catalog.CredentialInfo{},
2626
common.CustomizeSchemaPath(m, computed).SetComputed()
2727
}
2828

29+
common.CustomizeSchemaPath(m, "name").SetForceNew()
2930
common.CustomizeSchemaPath(m, "databricks_gcp_service_account").SetComputed()
3031
common.CustomizeSchemaPath(m, "databricks_gcp_service_account", "email").SetComputed()
3132
common.CustomizeSchemaPath(m, "databricks_gcp_service_account", "credential_id").SetComputed()

catalog/resource_credential_test.go

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,53 @@ func TestCreateIsolatedCredential(t *testing.T) {
157157
"isolation_mode": "ISOLATION_MODE_ISOLATED",
158158
})
159159
}
160+
161+
func TestUpdateCredentialSchemaForceNew(t *testing.T) {
162+
qa.ResourceFixture{
163+
MockWorkspaceClientFunc: func(w *mocks.MockWorkspaceClient) {
164+
e := w.GetMockCredentialsAPI().EXPECT()
165+
e.UpdateCredential(mock.Anything, catalog.UpdateCredentialRequest{
166+
NameArg: "name",
167+
AwsIamRole: &catalog.AwsIamRole{
168+
RoleArn: "arn:aws:iam::account:role/role",
169+
},
170+
Comment: "comment",
171+
}).Return(&catalog.CredentialInfo{
172+
Id: "1234-5678",
173+
Name: "name",
174+
AwsIamRole: &catalog.AwsIamRole{
175+
RoleArn: "arn:aws:iam::account:role/role",
176+
},
177+
Comment: "comment",
178+
}, nil)
179+
e.GetCredentialByNameArg(mock.Anything, "name").Return(&catalog.CredentialInfo{
180+
Id: "1234-5678",
181+
Name: "name",
182+
Purpose: "SERVICE",
183+
AwsIamRole: &catalog.AwsIamRole{
184+
RoleArn: "arn:aws:iam::account:role/role",
185+
},
186+
Comment: "comment",
187+
}, nil)
188+
},
189+
RequiresNew: true,
190+
Resource: ResourceCredential(),
191+
Update: true,
192+
ID: "name",
193+
InstanceState: map[string]string{
194+
"name": "name",
195+
"purpose": "SERVICE",
196+
"aws_iam_role.#": "1",
197+
"aws_iam_role.0.role_arn": "arn:aws:iam::account:role/role",
198+
"comment": "comment",
199+
},
200+
HCL: `
201+
name = "rename"
202+
purpose = "SERVICE"
203+
aws_iam_role {
204+
role_arn = "arn:aws:iam::account:role/role"
205+
}
206+
comment = "comment"
207+
`,
208+
}.ApplyNoError(t)
209+
}

clusters/data_spark_version.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ func DataSourceSparkVersion() common.Resource {
2727
}, func(s map[string]*schema.Schema) map[string]*schema.Schema {
2828
common.CustomizeSchemaPath(s, "photon").SetDeprecated("Specify runtime_engine=\"PHOTON\" in the cluster configuration")
2929
common.CustomizeSchemaPath(s, "graviton").SetDeprecated("Not required anymore - it's automatically enabled on the Graviton-based node types")
30+
common.CustomizeSchemaPath(s, "scala").SetDefault("2.1")
31+
common.CustomizeSchemaPath(s, "latest").SetDefault(true)
32+
3033
common.NamespaceCustomizeSchemaMap(s)
3134
return s
3235
})

0 commit comments

Comments
 (0)