Merge pull request #77419 from alculquicondor/feature/fake-runtime-handler

Store runtimeHandler for the PodSandboxStatus in FakeRuntimeService
This commit is contained in:
Kubernetes Prow Robot 2019-05-07 15:55:11 -07:00 committed by GitHub
commit 5523be3572
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
})
}