Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows % and infinity for Memory Limits + Add MemoryMin #267

Merged
merged 3 commits into from
Mar 16, 2022

Conversation

SeanHood
Copy link
Contributor

Pull Request (PR) description

The memory service limits were missing support for specifying a percentage of memory, same for infinity. This PR fixes this.

I also noticed that MemoryMin was missing.

types/servicelimits.pp Outdated Show resolved Hide resolved
@bastelfreak
Copy link
Member

@SeanHood can you please write some basic tests for this? an example for another type is at https://github.com/voxpupuli/puppet-systemd/blob/master/spec/type_aliases/systemd_coredumpsettings_spec.rb

@traylenator
Copy link
Contributor

@SeanHood can you please write some basic tests for this? an example for another type is at https://github.com/voxpupuli/puppet-systemd/blob/master/spec/type_aliases/systemd_coredumpsettings_spec.rb

Though that type should probably allow some percentages in places as well. Not relevant to this patch.

Co-authored-by: Romain Tartière <romain@blogreen.org>
@SeanHood
Copy link
Contributor Author

Thanks for the suggestions, I've pulled in the regex changes and added some basic tests.

@SeanHood SeanHood force-pushed the memorylimits-can-be-percent branch from 2f2c7a3 to 7a14105 Compare March 16, 2022 10:52
@traylenator traylenator added the enhancement New feature or request label Mar 16, 2022
@traylenator traylenator merged commit a56a396 into voxpupuli:master Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants