Skip to content

Commit 02122e2

Browse files
authored
Deprecate cluster_mount_info block in databricks_cluster resource (#2703)
The `cluster_mount_info` isn't part of official Clusters API anymore, and may go away at any point of time, so putting the deprecation message to prevent surprises.
1 parent 2b4bb48 commit 02122e2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

clusters/resource_cluster.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ func resourceClusterSchema() map[string]*schema.Schema {
9191

9292
s["runtime_engine"].ValidateFunc = validation.StringInSlice([]string{"PHOTON", "STANDARD"}, false)
9393

94+
s["cluster_mount_info"].Deprecated = "cluster_mount_info block is deprecated due the Clusters API changes."
95+
9496
s["is_pinned"] = &schema.Schema{
9597
Type: schema.TypeBool,
9698
Optional: true,

docs/resources/cluster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ resource "databricks_cluster" "this" {
473473
}
474474
```
475475

476-
## cluster_mount_info blocks
476+
## cluster_mount_info blocks (deprecated)
477477

478478
It's possible to mount NFS (Network File System) resources into the Spark containers inside the cluster. You can specify one or more `cluster_mount_info` blocks describing the mount. This block has following attributes:
479479

0 commit comments

Comments
 (0)