From 99614a27a01535eb315bbedfa800e093f38046e8 Mon Sep 17 00:00:00 2001 From: Tim Harrold Date: Tue, 14 May 2024 20:22:00 +0000 Subject: [PATCH] Update TMDS response for restart tracker --- .../ecs-agent/tmds/handlers/v4/state/response.go | 7 +++---- ecs-agent/tmds/handlers/v4/state/response.go | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/agent/vendor/github.com/aws/amazon-ecs-agent/ecs-agent/tmds/handlers/v4/state/response.go b/agent/vendor/github.com/aws/amazon-ecs-agent/ecs-agent/tmds/handlers/v4/state/response.go index e26c7bb9bd9..542cfb7ed81 100644 --- a/agent/vendor/github.com/aws/amazon-ecs-agent/ecs-agent/tmds/handlers/v4/state/response.go +++ b/agent/vendor/github.com/aws/amazon-ecs-agent/ecs-agent/tmds/handlers/v4/state/response.go @@ -57,10 +57,9 @@ type EphemeralStorageMetrics struct { // with the v2 container response object. type ContainerResponse struct { *v2.ContainerResponse - Networks []Network `json:"Networks,omitempty"` - Snapshotter string `json:"Snapshotter,omitempty"` - RestartCount int `json:"RestartCount,omitempty"` - LastRestartAt time.Time `json:"LastRestartAt,omitempty"` + Networks []Network `json:"Networks,omitempty"` + Snapshotter string `json:"Snapshotter,omitempty"` + RestartCount *int `json:"RestartCount,omitempty"` } // Network is the v4 Network response. It adds a bunch of information about network diff --git a/ecs-agent/tmds/handlers/v4/state/response.go b/ecs-agent/tmds/handlers/v4/state/response.go index e26c7bb9bd9..542cfb7ed81 100644 --- a/ecs-agent/tmds/handlers/v4/state/response.go +++ b/ecs-agent/tmds/handlers/v4/state/response.go @@ -57,10 +57,9 @@ type EphemeralStorageMetrics struct { // with the v2 container response object. type ContainerResponse struct { *v2.ContainerResponse - Networks []Network `json:"Networks,omitempty"` - Snapshotter string `json:"Snapshotter,omitempty"` - RestartCount int `json:"RestartCount,omitempty"` - LastRestartAt time.Time `json:"LastRestartAt,omitempty"` + Networks []Network `json:"Networks,omitempty"` + Snapshotter string `json:"Snapshotter,omitempty"` + RestartCount *int `json:"RestartCount,omitempty"` } // Network is the v4 Network response. It adds a bunch of information about network