From d077d2186785cac4ff54dde6ed2cb791715ba786 Mon Sep 17 00:00:00 2001 From: Aldo Culquicondor Date: Fri, 3 May 2019 16:07:46 -0400 Subject: [PATCH] Store runtimeHandler for the PodSandboxStatus in FakeRuntimeService Include the RuntimeHandler in ListPodSandbox Signed-off-by: Aldo Culquicondor --- .../pkg/apis/testing/fake_runtime_service.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/staging/src/k8s.io/cri-api/pkg/apis/testing/fake_runtime_service.go b/staging/src/k8s.io/cri-api/pkg/apis/testing/fake_runtime_service.go index 1bd4ab2bde6..4b560af6f64 100644 --- a/staging/src/k8s.io/cri-api/pkg/apis/testing/fake_runtime_service.go +++ b/staging/src/k8s.io/cri-api/pkg/apis/testing/fake_runtime_service.go @@ -181,8 +181,9 @@ func (r *FakeRuntimeService) RunPodSandbox(config *runtimeapi.PodSandboxConfig, Network: &runtimeapi.PodSandboxNetworkStatus{ Ip: FakePodSandboxIP, }, - Labels: config.Labels, - Annotations: config.Annotations, + Labels: config.Labels, + Annotations: config.Annotations, + RuntimeHandler: runtimeHandler, }, RuntimeHandler: runtimeHandler, } @@ -253,12 +254,13 @@ func (r *FakeRuntimeService) ListPodSandbox(filter *runtimeapi.PodSandboxFilter) } result = append(result, &runtimeapi.PodSandbox{ - Id: s.Id, - Metadata: s.Metadata, - State: s.State, - CreatedAt: s.CreatedAt, - Labels: s.Labels, - Annotations: s.Annotations, + Id: s.Id, + Metadata: s.Metadata, + State: s.State, + CreatedAt: s.CreatedAt, + Labels: s.Labels, + Annotations: s.Annotations, + RuntimeHandler: s.RuntimeHandler, }) }