[PR #463] [MERGED] Feat: HA rules #493

Closed
opened 2026-02-28 00:42:24 +03:00 by kerem · 0 comments
Owner

📋 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: masterHead: feat-ha-rules


📝 Commits (10+)

  • 3aed606 feat: ListHaRules
  • 279a1d9 feat: HaRuleID.Delete()
  • ea2740b fix: missing json keys
  • d7eeeb2 feat: NewHaRuleFromApi()
  • 96bfacd feat: HaRuleID.Validate()
  • 4f6b4e3 feat: HaNodeAffinityRule.Validate()
  • f86b33c feat: HaResourceAffinityRule.Validate()
  • 6f35c4c test: HaRuleID date
  • 83756f0 refactor: add HaRule.Kind()
  • a725129 feat: 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Telmate/proxmox-api-go/pull/463 **Author:** [@Tinyblargon](https://github.com/Tinyblargon) **Created:** 9/24/2025 **Status:** ✅ Merged **Merged:** 9/25/2025 **Merged by:** [@Tinyblargon](https://github.com/Tinyblargon) **Base:** `master` ← **Head:** `feat-ha-rules` --- ### 📝 Commits (10+) - [`3aed606`](https://github.com/Telmate/proxmox-api-go/commit/3aed60662ce223783043ca7dd5e0c4b9881bf323) feat: ListHaRules - [`279a1d9`](https://github.com/Telmate/proxmox-api-go/commit/279a1d9a37c2f00a000f6f98447f8fe6f04944c6) feat: `HaRuleID.Delete()` - [`ea2740b`](https://github.com/Telmate/proxmox-api-go/commit/ea2740b6d95b96e036e40428a0644a43c49bcd94) fix: missing json keys - [`d7eeeb2`](https://github.com/Telmate/proxmox-api-go/commit/d7eeeb28888d4b26ac424a939643fac8167df155) feat: `NewHaRuleFromApi()` - [`96bfacd`](https://github.com/Telmate/proxmox-api-go/commit/96bfacde7cb24b51eeb21bd47ae05a083f1e9cc9) feat: `HaRuleID.Validate()` - [`4f6b4e3`](https://github.com/Telmate/proxmox-api-go/commit/4f6b4e3b87abb65cdbfda38933856fa9aa7d1370) feat: `HaNodeAffinityRule.Validate()` - [`f86b33c`](https://github.com/Telmate/proxmox-api-go/commit/f86b33c43097c3c87562da3a14303320f31650bd) feat: `HaResourceAffinityRule.Validate()` - [`6f35c4c`](https://github.com/Telmate/proxmox-api-go/commit/6f35c4c5030b3f892e1f1e1b0dcfcf2240e1bee6) test: HaRuleID date - [`83756f0`](https://github.com/Telmate/proxmox-api-go/commit/83756f0ada2bc705fd097e556632c5e72ad36ea3) refactor: add `HaRule.Kind()` - [`a725129`](https://github.com/Telmate/proxmox-api-go/commit/a7251296d1a92788701511736dc304bd5e872fc2) feat: `HaNodeAffinityRule.Create()` ### 📊 Changes **13 files changed** (+2977 additions, -8 deletions) <details> <summary>View changed files</summary> ➕ `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) </details> ### 📄 Description Add support for the new HA rules introduced in PVE 9.0 Add tests for all pure functions. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:42:24 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmox-api-go#493
No description provided.