server: restore sandbox created time from disk
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
59e3f98b6d
commit
3bd4811b3b
2 changed files with 8 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue