mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 15:35:51 +03:00
[PR #317] Feature: Optional HA settings #390
Labels
No labels
good first issue
issue/confirmed
issue/critical
proposal/accepted
pull-request
type/bug
type/enhancement
type/feature
type/question
type/refactoring
type/testing
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-api-go#390
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Telmate/proxmox-api-go/pull/317
Author: @Tinyblargon
Created: 3/7/2024
Status: 🔄 Open
Base:
master← Head:Feature-#314📝 Commits (6)
5d8bfdcfeat: support all HA properties3c6ca6dtest: HA code9b1c01fAdd deprecation warning28c705cfeat: make allGuestHAsettings optional9cb5edffix: nil pointer derefrencee7a8e0dfix: update & create logic swapped📊 Changes
7 files changed (+678 additions, -68 deletions)
View changed files
📝
proxmox/client.go(+17 -11)➕
proxmox/config_ha.go(+238 -0)➕
proxmox/config_ha_test.go(+331 -0)📝
proxmox/config_hagroup.go(+9 -9)📝
proxmox/config_lxc.go(+19 -21)📝
proxmox/config_qemu.go(+30 -22)📝
proxmox/config_qemu_test.go(+34 -5)📄 Description
Add support for all guest HA options.
These HA settings have been added as an optional substructure to
ConfigQemuandConfigLxc, not setting this means that the HA settings won't be updated.The following type changes where made:
Before:
After:
Marked the following as deprecated
*Client.ReadVMHA()*Client.UpdateVMHA()Will make a corresponding pr to the Terraform provider as well.
Closes #314
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.