From e76e5dec8ca66102fc883e1f4a9a1a4d9b102ada Mon Sep 17 00:00:00 2001 From: xuepeng Date: Fri, 28 Apr 2023 04:58:21 +0800 Subject: [PATCH 14/15] Add resources info to pod inspection Signed-off-by: xuepeng --- src/json/schema/container/inspect.json | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/src/json/schema/container/inspect.json b/src/json/schema/container/inspect.json index d6dc8c3..9c76c33 100644 --- a/src/json/schema/container/inspect.json +++ b/src/json/schema/container/inspect.json @@ -54,6 +54,43 @@ } } }, + "Resources": { + "type": "object", + "properties": { + "CPUPeriod": { + "type": "int64" + }, + "CPUQuota": { + "type": "int64" + }, + "CPUShares": { + "type": "int64" + }, + "Memory": { + "type": "int64" + }, + "MemorySwap": { + "type": "int64" + }, + "Hugetlbs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "PageSize": { + "type": "string" + }, + "Limit": { + "type": "uint64" + } + } + } + }, + "unified": { + "$ref": "../defs.json#/definitions/mapStringString" + } + } + }, "Image": { "type": "string" }, -- 2.25.1