-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add ability to specify range of VM IDs to use (#286)
* Return VMIDFreeErr or the error object itself if CheckID returns true/an error * Rename VMIDFreeErr to ErrVMIDFree and fix comment to make linter happy * feat: Add ability to specify range of VM IDs to use * Fix codespell error: fix spelling * When checking if a vmid is free, first check the existing ProxmoxMachines before querying the Proxmox API. * Check that the vmid of the Proxmox machine is set (not -1) before adding it to usedVMIDs * Move spec.vmidRange from ProxmoxCluster to ProxmoxMachine * Update github.com/luthermonson/go-proxmox to v0.2.0 * Revert "Update github.com/luthermonson/go-proxmox to v0.2.0" This reverts commit c5d15e5. Because of this bug luthermonson/go-proxmox#169 * Update github.com/luthermonson/go-proxmox to v0.2.1 * Add test for ClusterScope.ListProxmoxMachinesForCluster * Fix wording in ProxmoxMachine types test * Rename vmidRange to vmIDRange to follow k8s API conventions * Add validation for vmIDRange: end should be greater than or equal to start * Set failureMessage and failureReason when ErrNoVMIDInRangeFree is thrown * Refactor getVMID to improve code quality --------- Co-authored-by: Mohamed Chiheb Ben Jemaa <[email protected]>
- Loading branch information
1 parent
c1f7482
commit 5f3ba2f
Showing
15 changed files
with
599 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.