mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 15:35:51 +03:00
[PR #463] [MERGED] Feat: HA rules #493
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#493
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/463
Author: @Tinyblargon
Created: 9/24/2025
Status: ✅ Merged
Merged: 9/25/2025
Merged by: @Tinyblargon
Base:
master← Head:feat-ha-rules📝 Commits (10+)
3aed606feat: ListHaRules279a1d9feat:HaRuleID.Delete()ea2740bfix: missing json keysd7eeeb2feat:NewHaRuleFromApi()96bfacdfeat:HaRuleID.Validate()4f6b4e3feat:HaNodeAffinityRule.Validate()f86b33cfeat:HaResourceAffinityRule.Validate()6f35c4ctest: HaRuleID date83756f0refactor: addHaRule.Kind()a725129feat:HaNodeAffinityRule.Create()📊 Changes
13 files changed (+2977 additions, -8 deletions)
View changed files
➕
internal/array/array.go(+5 -0)📝
internal/parse/parse.go(+16 -2)📝
internal/parse/parse_test.go(+46 -4)📝
proxmox/client.go(+1 -0)📝
proxmox/client__api.go(+28 -0)📝
proxmox/client__api__mock.go(+42 -2)📝
proxmox/client__api__reusable.go(+15 -0)📝
proxmox/client__new.go(+18 -0)📝
proxmox/client__new__mock.go(+105 -0)📝
proxmox/client_test.go(+1 -0)➕
proxmox/config__ha__rules.go(+931 -0)➕
proxmox/config__ha__rules_test.go(+1683 -0)➕
test/data/test_data_ha/type_HaRuleID.go(+86 -0)📄 Description
Add support for the new HA rules introduced in PVE 9.0
Add tests for all pure functions.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
GuestStartup#508