You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ulimit types in compose_spec::Service should be changed to make use of compose_spec::service::Limit<T>. The compose_spec::service::Ulimits type alias should be changed to IndexMap<Resource, ShortOrLong<Limit<u64>, Ulimit>>. The soft and hard fields of compose_spec::service::Ulimit should be changed to Limit<u64>.
This is a breaking change.
The text was updated successfully, but these errors were encountered:
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
From containers/podlet#117.
Support setting
services[].ulimits[]
to-1
, i.e., unlimited. While neither the Compose Specification nor thedocker run
docs allow this possibility explicitly, thepodman run --ulimit
docs do.The ulimit types in
compose_spec::Service
should be changed to make use ofcompose_spec::service::Limit<T>
. Thecompose_spec::service::Ulimits
type alias should be changed toIndexMap<Resource, ShortOrLong<Limit<u64>, Ulimit>>
. Thesoft
andhard
fields ofcompose_spec::service::Ulimit
should be changed toLimit<u64>
.This is a breaking change.
The text was updated successfully, but these errors were encountered: