-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pillar: Refactor CountMemOverhead to use explicit parameters instead …
…of DomainConfig. In this commit, the CountMemOverhead function across various hypervisors (containerd, kvm, null) is refactored. The change involves passing individual parameters (like domain UUID, memory size, CPU counts, etc.) directly to the function, rather than encapsulating them within a DomainConfig object. This approach eliminates the need for creating a mock DomainConfig just to calculate memory overhead, leading to cleaner and more explicit code. The changes are applied consistently across the relevant files in the zedmanager and hypervisor packages. Signed-off-by: Nikolay Martyanov <nikolay@zededa.com>
- Loading branch information
1 parent
5f5a124
commit a41e382
Showing
5 changed files
with
28 additions
and
24 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
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