databricks / terraform-provider-databricks

Databricks Terraform Provider
https://registry.terraform.io/providers/databricks/databricks/latest
Other
456 stars 393 forks source link

[Fix] Do not validate single node clusters if a policy is configured #4206

Closed shreyas-goenka closed 1 week ago

shreyas-goenka commented 1 week ago

Changes

Addresses another problem reported in https://github.com/databricks/cli/issues/1546, where customers were not able to configure and use cluster policies for single node clusters.

Tests

Unit tests, and manually verified that cluster is successfully created without spark_conf even when num_workers is 0.

github-actions[bot] commented 1 week ago

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger: go/deco-tests-run/terraform

Inputs:

Checks will be approved automatically on success.

eng-dev-ecosystem-bot commented 1 week ago

Test Details: go/deco-tests/11768949308

alexott commented 1 week ago

@shreyas-goenka if required attributes will be filled via cluster policy, then there will be permanent configuration drift. See note in the doc

shreyas-goenka commented 1 week ago

Closing this PR in favour of https://github.com/databricks/terraform-provider-databricks/pull/4222