mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-01 11:02:59 +00:00
fix(cluster): insecure
migration_type
validation (#1607)
fix(provider): fix insecure migration_type validation Signed-off-by: dgriswo <daniel@griswoldcomputing.com>
This commit is contained in:
parent
fea548c1e9
commit
0ba36e48da
@ -60,7 +60,7 @@ resource "proxmox_virtual_environment_cluster_options" "options" {
|
|||||||
- `mac_prefix` (String) Prefix for autogenerated MAC addresses.
|
- `mac_prefix` (String) Prefix for autogenerated MAC addresses.
|
||||||
- `max_workers` (Number) Defines how many workers (per node) are maximal started on actions like 'stopall VMs' or task from the ha-manager.
|
- `max_workers` (Number) Defines how many workers (per node) are maximal started on actions like 'stopall VMs' or task from the ha-manager.
|
||||||
- `migration_cidr` (String) Cluster wide migration network CIDR.
|
- `migration_cidr` (String) Cluster wide migration network CIDR.
|
||||||
- `migration_type` (String) Cluster wide migration type. Must be `secure` | `unsecure` (default is `secure`).
|
- `migration_type` (String) Cluster wide migration type. Must be `secure` | `insecure` (default is `secure`).
|
||||||
- `next_id` (Attributes) The ranges for the next free VM ID auto-selection pool. (see [below for nested schema](#nestedatt--next_id))
|
- `next_id` (Attributes) The ranges for the next free VM ID auto-selection pool. (see [below for nested schema](#nestedatt--next_id))
|
||||||
- `notify` (Attributes) Cluster-wide notification settings. (see [below for nested schema](#nestedatt--notify))
|
- `notify` (Attributes) Cluster-wide notification settings. (see [below for nested schema](#nestedatt--notify))
|
||||||
|
|
||||||
|
@ -537,12 +537,12 @@ func (r *clusterOptionsResource) Schema(
|
|||||||
},
|
},
|
||||||
"migration_type": schema.StringAttribute{
|
"migration_type": schema.StringAttribute{
|
||||||
Description: "Cluster wide migration type.",
|
Description: "Cluster wide migration type.",
|
||||||
MarkdownDescription: "Cluster wide migration type. Must be `secure` | `unsecure` " +
|
MarkdownDescription: "Cluster wide migration type. Must be `secure` | `insecure` " +
|
||||||
"(default is `secure`).",
|
"(default is `secure`).",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Validators: []validator.String{stringvalidator.OneOf([]string{
|
Validators: []validator.String{stringvalidator.OneOf([]string{
|
||||||
"secure",
|
"secure",
|
||||||
"unsecure",
|
"insecure",
|
||||||
}...)},
|
}...)},
|
||||||
},
|
},
|
||||||
"migration_cidr": schema.StringAttribute{
|
"migration_cidr": schema.StringAttribute{
|
||||||
|
Loading…
Reference in New Issue
Block a user