Get runtime spec from container metadata.

Signed-off-by: Random-Liu <lantaol@google.com>
This commit is contained in:
Random-Liu
2017-07-27 18:04:25 -07:00
committed by Lantao Liu
parent 2a2d709af7
commit b398a161de
4 changed files with 18 additions and 16 deletions

View File

@@ -19,7 +19,6 @@ package metadata
import (
"encoding/json"
runtimespec "github.com/opencontainers/runtime-spec/specs-go"
"k8s.io/kubernetes/pkg/kubelet/apis/cri/v1alpha1/runtime"
"github.com/kubernetes-incubator/cri-containerd/pkg/metadata/store"
@@ -74,11 +73,6 @@ type ContainerMetadata struct {
// into the store directly.
// TODO(random-liu): Reset this field to false during state recovery.
Removing bool
// TODO(random-liu): Remove following field after switching to new containerd
// client.
// Not including them in unit test now because they will be removed soon.
// Spec is the oci runtime spec used to run the container.
Spec *runtimespec.Spec
}
// State returns current state of the container based on the metadata.