代码拉取完成,页面将自动刷新
From 86c8f125b55993be85ca6d0982d3036452481479 Mon Sep 17 00:00:00 2001
From: zhongtao <zhongtao17@huawei.com>
Date: Sun, 18 Aug 2024 04:31:18 +0800
Subject: [PATCH] add nri def in host config
Signed-off-by: zhongtao <zhongtao17@huawei.com>
---
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.25.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。