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

fix(service)!: support unlimited ulimits #32

Merged
merged 1 commit into from
Oct 6, 2024

Conversation

k9withabone
Copy link
Owner

Changed soft and hard fields of compose_spec::service::Ulimit to compose_spec::service::Limit<u64>.

Changed compose_spec::service::Ulimits type alias (used for ulimits field of compose_spec::Service and compose_spec::service::Build) to IndexMap<Resource, ShortOrLong<Limit<u64>, Ulimit>>.

Changed <Ulimit as AsShort>::Short to Limit<u64>.

Added impl From<Limit<u64>> for Ulimit.

Added impl From<u64> for Limit<u64>.

Added impl<T, L> From<Limit<T>> for ShortOrLong<Limit<T>, L> and impl<L> From<u64> for ShortOrLong<Limit<u64>, L>.

Fixes: #31

@k9withabone k9withabone added the bug Something isn't working label Oct 4, 2024
@k9withabone k9withabone added this to the v0.3.0 milestone Oct 4, 2024
Changed `soft` and `hard` fields of `compose_spec::service::Ulimit` to
`compose_spec::service::Limit<u64>`.

Changed `compose_spec::service::Ulimits` type alias (used for `ulimits`
field of `compose_spec::Service` and `compose_spec::service::Build`) to
`IndexMap<Resource, ShortOrLong<Limit<u64>, Ulimit>>`.

Changed `<Ulimit as AsShort>::Short` to `Limit<u64>`.

Added `impl From<Limit<u64>> for Ulimit`.

Added `impl From<u64> for Limit<u64>`.

Added `impl<T, L> From<Limit<T>> for ShortOrLong<Limit<T>, L>` and
`impl<L> From<u64> for ShortOrLong<Limit<u64>, L>`.

Fixes: #31
@k9withabone k9withabone force-pushed the service-ulimits-unlimited branch from b12bfbd to 622ba03 Compare October 4, 2024 09:02
@k9withabone k9withabone merged commit 6ea9c4e into main Oct 6, 2024
9 checks passed
@k9withabone k9withabone deleted the service-ulimits-unlimited branch October 6, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support unlimited ulimits
1 participant