Skip to content

Commit 75459af

Browse files
authored
Merge pull request containerd#9673 from zzzzzzzzzy9/dev2
pod: CreatedAt time will be 269 years ago if create cri network failed
2 parents f276561 + b16d467 commit 75459af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/cri/server/sandbox_run.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ func (c *criService) RunPodSandbox(ctx context.Context, r *runtime.RunPodSandbox
120120
RuntimeHandler: r.GetRuntimeHandler(),
121121
},
122122
sandboxstore.Status{
123-
State: sandboxstore.StateUnknown,
123+
State: sandboxstore.StateUnknown,
124+
CreatedAt: time.Now().UTC(),
124125
},
125126
)
126127

0 commit comments

Comments
 (0)