server: restore sandbox created time from disk

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2017-05-11 11:04:43 +02:00
parent 59e3f98b6d
commit 3bd4811b3b
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9
2 changed files with 8 additions and 1 deletions

View file

@ -271,7 +271,7 @@ func (s *Server) RunPodSandbox(ctx context.Context, req *pb.RunPodSandboxRequest
g.AddAnnotation("crio/kube_name", kubeName)
created := time.Now()
g.AddAnnotation("ocid/created", created.Format(time.RFC3339Nano))
g.AddAnnotation("crio/created", created.Format(time.RFC3339Nano))
sb := &sandbox{
id: id,