0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-30 18:42:58 +00:00
terraform-provider-proxmox/proxmoxtf
Sven Greb 9b34c485ab
feat(lxc): Implement support for container's "protection flag" (#1512)
* feat(lxc): Implement support for container's "protection flag"

The Proxmox VE types already has the `protection` API parameter [1],
but it is not exposed to the provider users.
This pull request implements the missing logic to make it available in
order to allow to protect containers against deletion/update operations,
including the container's disks.

[1]: https://github.com/bpg/terraform-provider-proxmox/blob/v0.63.0/proxmox/nodes/containers/containers_types.go#L59

Relates GH-1126

Signed-off-by: Sven Greb <development@svengreb.de>

* Update example/resource_virtual_environment_container.tf

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>

---------

Signed-off-by: Sven Greb <development@svengreb.de>
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-09-08 11:08:13 -04:00
..
datasource feat(vm): implement filtering in vms data source. (#1423) 2024-07-05 15:52:39 -04:00
provider chore(deps): update module github.com/golangci/golangci-lint (v1.60.1 → v1.60.2) in /tools (#1499) 2024-08-22 00:30:20 +00:00
resource feat(lxc): Implement support for container's "protection flag" (#1512) 2024-09-08 11:08:13 -04:00
structure fix(vm): yet another fix for disk reordering (#1297) 2024-05-15 02:31:41 +00:00
test chore(vm): refactoring: extract network device code from vm.go (#1127) 2024-03-16 01:06:30 +00:00
config.go feat(provider): configure temp directory (#607) 2023-10-07 21:00:34 -04:00