schema.types: add constructors for Isolator from types.ResourceMemory or types.ResourceCPU
Closed this issue · 3 comments
alban commented
#517 added functions AsIsolator()
to types.LinuxCapabilitiesRetainSet
and types.LinuxCapabilitiesRevokeSet
but appc/spec still does not have constructors to build a types.Isolator
from a types.ResourceMemory
or types.ResourceCPU
.
I would need one for rkt/rkt#1735.
alban commented
I am not sure of the correct approach. I started to experiment on kinvolk/rkt@6e48585.
jonboulle commented
For symmetry how about adding AsIsolator
to those other types as well?
alban commented
@jonboulle ok for AsIsolator
:)