From 86c8f125b55993be85ca6d0982d3036452481479 Mon Sep 17 00:00:00 2001 From: zhongtao Date: Sun, 18 Aug 2024 04:31:18 +0800 Subject: [PATCH 18/20] add nri def in host config Signed-off-by: zhongtao --- src/json/schema/host-config.json | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/src/json/schema/host-config.json b/src/json/schema/host-config.json index 6af8021..a9679bd 100644 --- a/src/json/schema/host-config.json +++ b/src/json/schema/host-config.json @@ -311,6 +311,41 @@ "items": { "type": "string" } + }, + "NriDevices": { + "id": "https://opencontainers.org/schema/bundle/linux/devices", + "type": "array", + "items": { + "$ref": "defs.json#/definitions/Device" + } + }, + "NriRlimits": { + "id": "https://opencontainers.org/schema/bundle/linux/rlimits", + "type": "array", + "items": { + "id": "https://opencontainers.org/schema/bundle/linux/rlimits/0", + "type": "object", + "required": [ + "type", + "soft", + "hard" + ], + "properties": { + "hard": { + "id": "https://opencontainers.org/schema/bundle/linux/rlimits/0/hard", + "$ref": "defs.json#/definitions/uint64" + }, + "soft": { + "id": "https://opencontainers.org/schema/bundle/linux/rlimits/0/soft", + "$ref": "defs.json#/definitions/uint64" + }, + "type": { + "id": "https://opencontainers.org/schema/bundle/linux/rlimits/0/type", + "type": "string", + "pattern": "^RLIMIT_[A-Z]+$" + } + } + } } } } -- 2.33.0