Closed devimc closed 6 years ago
closing issue, the issue is not in the agent is in the runtime[1]
func constraintGRPCSpec(grpcSpec *grpc.Spec) {
// Disable Hooks since they have been handled on the host and there is
// no reason to send them to the agent. It would make no sense to try
// to apply them on the guest.
grpcSpec.Hooks = nil
// Disable Seccomp since they cannot be handled properly by the agent
// until we provide a guest image with libseccomp support. More details
// here: https://github.com/kata-containers/agent/issues/104
grpcSpec.Linux.Seccomp = nil
// TODO: Remove this constraint as soon as the agent properly handles
// resources provided through the specification.
grpcSpec.Linux.Resources = nil
https://github.com/kata-containers/runtime/blob/master/virtcontainers/kata_agent.go#L555
Description of problem
some fileds are nit in the struct returned by OCItoGRPC
Expected result
Linux.Resources must not be nil
Actual result
the original oci spec
result returned by OCItoGRPC