diff --git a/docs/resources/virtual_environment_container.md b/docs/resources/virtual_environment_container.md index 1ee286d2..fb360ab2 100644 --- a/docs/resources/virtual_environment_container.md +++ b/docs/resources/virtual_environment_container.md @@ -127,7 +127,8 @@ output "ubuntu_container_public_key" { - `datastore_id` - (Optional) The identifier for the datastore to create the disk in (defaults to `local`). - `size` - (Optional) The size of the root filesystem in gigabytes (defaults - to `4`). Requires `datastore_id` to be set. + to `4`). When set to 0 a directory or zfs/btrfs subvolume will be created. + Requires `datastore_id` to be set. - `initialization` - (Optional) The initialization configuration. - `dns` - (Optional) The DNS configuration. - `domain` - (Optional) The DNS search domain. diff --git a/proxmoxtf/resource/container/container.go b/proxmoxtf/resource/container/container.go index 78534981..bd3bc487 100644 --- a/proxmoxtf/resource/container/container.go +++ b/proxmoxtf/resource/container/container.go @@ -342,7 +342,7 @@ func Container() *schema.Resource { Optional: true, ForceNew: true, Default: dvDiskSize, - ValidateDiagFunc: validation.ToDiagFunc(validation.IntAtLeast(1)), + ValidateDiagFunc: validation.ToDiagFunc(validation.IntAtLeast(0)), }, }, },