From ef47fbb2cc395c2638cd44b0e0248f81f860d8cb Mon Sep 17 00:00:00 2001 From: Hoshank Mali Date: Wed, 19 Jul 2023 23:54:57 +0000 Subject: [PATCH 1/3] Add Snapshotter field to V4 Container Response. --- ecs-agent/tmds/handlers/v4/state/response.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ecs-agent/tmds/handlers/v4/state/response.go b/ecs-agent/tmds/handlers/v4/state/response.go index 9738f473b73..ecbe93bb23c 100644 --- a/ecs-agent/tmds/handlers/v4/state/response.go +++ b/ecs-agent/tmds/handlers/v4/state/response.go @@ -57,7 +57,8 @@ type EphemeralStorageMetrics struct { // with the v2 container response object. type ContainerResponse struct { *v2.ContainerResponse - Networks []Network `json:"Networks,omitempty"` + Networks []Network `json:"Networks,omitempty"` + Snapshotter string `json:"ContainerARN,omitempty"` } // Network is the v4 Network response. It adds a bunch of information about network From 0419ce9c8e1a4ae74346d4956c087bd4611cf191 Mon Sep 17 00:00:00 2001 From: Hoshank Mali Date: Thu, 20 Jul 2023 00:18:09 +0000 Subject: [PATCH 2/3] Revert "Add Snapshotter field to V4 Container Response." This reverts commit ef47fbb2cc395c2638cd44b0e0248f81f860d8cb. --- ecs-agent/tmds/handlers/v4/state/response.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ecs-agent/tmds/handlers/v4/state/response.go b/ecs-agent/tmds/handlers/v4/state/response.go index ecbe93bb23c..9738f473b73 100644 --- a/ecs-agent/tmds/handlers/v4/state/response.go +++ b/ecs-agent/tmds/handlers/v4/state/response.go @@ -57,8 +57,7 @@ type EphemeralStorageMetrics struct { // with the v2 container response object. type ContainerResponse struct { *v2.ContainerResponse - Networks []Network `json:"Networks,omitempty"` - Snapshotter string `json:"ContainerARN,omitempty"` + Networks []Network `json:"Networks,omitempty"` } // Network is the v4 Network response. It adds a bunch of information about network From 806d9936fae3cdd752a407687d3e5775a6da821a Mon Sep 17 00:00:00 2001 From: Hoshank Mali Date: Thu, 20 Jul 2023 00:21:04 +0000 Subject: [PATCH 3/3] Add Snapshotter field to V4 Container Response. --- ecs-agent/tmds/handlers/v4/state/response.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ecs-agent/tmds/handlers/v4/state/response.go b/ecs-agent/tmds/handlers/v4/state/response.go index 9738f473b73..9a6d523d8b1 100644 --- a/ecs-agent/tmds/handlers/v4/state/response.go +++ b/ecs-agent/tmds/handlers/v4/state/response.go @@ -57,7 +57,8 @@ type EphemeralStorageMetrics struct { // with the v2 container response object. type ContainerResponse struct { *v2.ContainerResponse - Networks []Network `json:"Networks,omitempty"` + Networks []Network `json:"Networks,omitempty"` + Snapshotter string `json:"Snapshotter,omitempty"` } // Network is the v4 Network response. It adds a bunch of information about network