Merge pull request #11403 from k8s-infra-cherrypick-robot/cherry-pick-11323-to-release/2.0

[release/2.0] Revert "Add timestamp to PodSandboxStatusResponse for kubernetes Evented PLEG"
This commit is contained in:
Akihiro Suda 2025-02-25 12:41:15 +09:00 committed by GitHub
commit 6b4c4a19f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,7 +46,6 @@ func (c *criService) PodSandboxStatus(ctx context.Context, r *runtime.PodSandbox
state string
info map[string]string
)
timestamp := time.Now().UnixNano()
cstatus, err := c.sandboxService.SandboxStatus(ctx, sandbox.Sandboxer, sandbox.ID, r.GetVerbose())
if err != nil {
// If the shim died unexpectedly (segfault etc.) let's set the state as
@ -84,9 +83,8 @@ func (c *criService) PodSandboxStatus(ctx context.Context, r *runtime.PodSandbox
}
return &runtime.PodSandboxStatusResponse{
Status: status,
Info: info,
Timestamp: timestamp,
Status: status,
Info: info,
}, nil
}