iSulad/0068-add-cri-1.29-api-change-docs.patch

140 lines
195 KiB
Diff
Raw Normal View History

From 6ffd8232929b3cd1873c899d6bf379013959fb28 Mon Sep 17 00:00:00 2001
From: jikai <jikai11@huawei.com>
Date: Fri, 22 Dec 2023 15:26:48 +0800
Subject: [PATCH 68/71] add cri 1.29 api change docs
Signed-off-by: jikai <jikai11@huawei.com>
---
.../detailed/CRI/CRI_1.29_interface_change.md | 105 ++++++++++++++++++
docs/images/cri_1.29_interface_change.svg | 5 +
2 files changed, 110 insertions(+)
create mode 100644 docs/design/detailed/CRI/CRI_1.29_interface_change.md
create mode 100644 docs/images/cri_1.29_interface_change.svg
diff --git a/docs/design/detailed/CRI/CRI_1.29_interface_change.md b/docs/design/detailed/CRI/CRI_1.29_interface_change.md
new file mode 100644
index 00000000..f94d001b
--- /dev/null
+++ b/docs/design/detailed/CRI/CRI_1.29_interface_change.md
@@ -0,0 +1,105 @@
+| Author | 吉凯 |
+| ------ | ------------------------ |
+| Date | 2023-12-22 |
+| Email | jikai11@huawei.com |
+
+### 参考代码
+
+升级版本1.29
+参考地址:<https://github.com/kubernetes/cri-api/tree/kubernetes-1.29.0>
+
+### 变更依赖图
+
+![](../../../images/cri_1.29_interface_change.svg)
+
+### 变更说明
+
+##### [CRI: Add Windows Podsandbox Stats](https://github.com/kubernetes/kubernetes/pull/110754)
+
+不支持,无需变更
+
+- Added fields to the type `WindowsPodSandboxStats` expressing stats required to be collected from windows pods.
+
+##### [Windows hostnetwork alpha](https://github.com/kubernetes/kubernetes/pull/112961)
+
+不支持,无需变更
+
+- New type `WindowsNamespaceOption` introduced
+- The type `WindowsSandboxSecurityContext` has a new field `namespace_options` of type `WindowsNamespaceOption`
+
+##### [Improve the API description of `PodSecurityContext.SupplementalGroups` to clarify its unfamiliar behavior](https://github.com/kubernetes/kubernetes/pull/113047)
+
+描述修改,优化`PodSecurityContext.SupplementalGroups`的注释明确容器镜像定义的主UID不在该列表下的行为
+
+- Clarified the expected behavior of `SupplementalGroups` field of `PodSecurityContext`
+
+##### [Add Support for Evented PLEG](https://github.com/kubernetes/kubernetes/pull/111384)
+
+新增字段,`GetContainerEvent`提供pod status和container status信息`PodSandboxStatus`提供container status信息[KEP-3386](https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/3386-kubelet-evented-pleg/README.md)
+
+- The type `ContainerEventResponse` updated: the field `pod_sandbox_metadata` removed and fields `pod_sandbox_status` and `containers_statuses` added.
+- The type `PodSandboxStatusResponse` has a new fields `containers_statuses` and `timestamp`
+
+##### [CRI: Add CDI device info for containers](https://github.com/kubernetes/kubernetes/pull/115891/)
+
+新增字段CDI特性支持CDI设备信息不再从annotation获取直接从`ContainerConfig`获取,[KEP-3063](https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/3063-dynamic-resource-allocation/README.md)
+
+- New type `CDIDevice` was introduced and added to container config
+
+##### [Add mappings for volumes](https://github.com/kubernetes/kubernetes/pull/116377)
+
+新增字段,`Mount`中新增UID/GID映射信息要求CRI创建挂载绑定时指定UID/GID映射信息Kubelet不再负责映射
+[KEP-127](https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/127-user-namespaces)
+
+- Added new fields to the type `Mount` expressing runtime UID/GID mappings for the mount.
+
+##### [cri-api: fix comment lines about PROPAGATION_PRIVATE](https://github.com/kubernetes/kubernetes/pull/115704)
+
+描述修改修改对PROPAGATION_PRIVATE的不正确注释
+
+- Fixed comment lines about PROPAGATION_PRIVATE
+
+##### [Add user specified image to CRI ContainerConfig](https://github.com/kubernetes/kubernetes/pull/118652)
+
+新增字段,`ImageSpec`新增`user_specified_image`,确保创建容器时验证正确的镜像
+
+- Added the `user_specified_image` field to type `ImageSpec`
+
+##### [kubelet: get cgroup driver config from CRI](https://github.com/kubernetes/kubernetes/pull/118770)
+
+新增rpc获取cgroup驱动配置[KEP-4033](https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/4033-group-driver-detection-over-cri)
+
+- Added rpc for querying runtime configuration
+- Added cavieats about cgroup driver field
+
+##### [Add swap to stats to Summary API and Prometheus endpoints (/stats/summary and /metrics/resource)](https://github.com/kubernetes/kubernetes/pull/118865)
+
+新增字段,`ContainerStats`中新增虚拟内存使用情况信息,[KEP-2400](https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/2400-node-swap/README.md#beta-1)
+
+- Added `SwapUsage` type
+- Added `SwapUsage` field to `ContainerStats` type
+
+##### [Expose commit memory used in WindowsMemoryUsage struct](https://github.com/kubernetes/kubernetes/pull/119238)
+
+不支持,无需变更。
+
+- Added the `commit_memory_bytes` field to type `WindowsMemoryUsage`
+
+##### [Add runtime handler field to ImageSpec struct](https://github.com/kubernetes/kubernetes/pull/121121)
+
+新增字段,指定拉取镜像所采用的运行时处理,[KEP-4216](https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/4216-image-pull-per-runtime-class)
+
+- Added `runtime_handler` field to type `ImageSpec`
+
+##### [kubelet: add support for broadcasting metrics from CRI](https://github.com/kubernetes/kubernetes/pull/113609)
+
+新增rpc`ListMetricDescriptors`和`ListPodSandboxMetrics`获取metrics信息[KEP-2371](https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/2371-cri-pod-container-stats/README.md)
+
+- Added rpc for pulling the metrics from CRI and broadcasting them to prometheus
+- Added cavieats about metrics
+
+##### [Kubelet disk api cri update](https://github.com/kubernetes/kubernetes/pull/120914)
+
+新增字段,`ImageFsInfo`返回值添加容器文件系统信息,[KEP-4191](https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/4191-split-image-filesystem/README.md)
+
+- Added `container_filesystems` field to type `ImageFsInfoResponse`
diff --git a/docs/images/cri_1.29_interface_change.svg b/docs/images/cri_1.29_interface_change.svg
new file mode 100644
index 00000000..06026d6f
--- /dev/null
+++ b/docs/images/cri_1.29_interface_change.svg
@@ -0,0 +1,5 @@
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1775.4295814700522 1691.8333333333335" width="1775.4295814700522" height="1691.8333333333335" filter="invert(93%) hue-rotate(180deg)" class="excalidraw-svg">
+ <!-- svg-source:excalidraw -->
+
+ <defs><style> @font-face {font-display: swap;font-family: "Virgil";src: url("data:application/font-woff;charset=utf-8;base64,d09GMk9UVE8AAO9AAAkAAAABO1AAAO73AAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAADYTJHQZgAIluATYCJAOQWAQGBY9lByBbpzpxQ1QZOitEWvl1ExHg7NqqxsS6RlCwSkciyuhqMfv//89KOsZwUAeGmJXV32EeijNbRUcYuVUTmWNvG5FWRBfkAW4YWVueXU6tq9d0pZufMcACcUzc7AmXTyBwYmw0WojBScItqLq853lRPMu/i21F/1VrveHFeyj+LdHE3AfsFiWacmNotmSIhpJesVGSFIFWJDgsMxNmRIsQQzGF4rvOX33MPtY+LeOF490dgR0G/l0zmGbP8ku9beGBOf2+EcKFm8Md59ESM5GZKYtFok/F14jmMBPlbsKEWTmjIcDMVCgM0RQv1VD4IZddn+x6g2Ff91p6BriTOHYqRgBPP/Z8O3Pn/WXBXUTBKoZoSbZg6N3qwPP/937uvc+bD5huHSziTSgio5mQNpAsr235cGq9P8/r5vc1H/KatrSSHj8fGwzDhavuia24cMyBvutkjYQtKFtwTcS1wVWcODY7KMSFOM69OS/+4fm59f7vRf5FsY0aMXLQQgsGrRwggmTYYCJVEmVBm4V5Z0ThidFYPeyrtRKEoeme3dvtgT6iOeJnlC8MsAKKT0UoFD469oV+l7DD8pn6lvkVc++0kSEfkCM0Vauqh+RnHNszHtYIqREKELpb3S0eAhMvIXmB7+tkb9/wpNO+5fOjmT/aU+6YYwu6wVlib1xrbGxcwNgduqmiNNOESimjUWmogISEAOOOe086XjvNccGlpjQnb8gjOY3Gyr1sLlmavf8vKSIJwtUoBiEBfY1jpaqrq1ET/z2/7f+/4/hmD/yU4cZxDvyseBGJ7/W9rVwMSlAkJUsk6hzqQCsqJVbd9NbifX/4r6pJ4LDfsD5vl0a3Nl1TSqk09SUxpviFT9KCpj3jFmScMz4t9f8VWXkadd4bSR35QqxNH33Ai5BewB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++B38ygHYhoswSGJKao0cwRU+cxa87AMKDql645JDKYO+5m4QVzcJ3y7stzuYTaZTHAbNHXHpPfKmuHugSHKiUk/ZPC/TXrC0xqt/dsGQ57sgXd3hs/6nDbLRY/DknG/yxVziZVz+ldwy0Iy6cNfv9o1UVPeO7SRI/Eej3M5tWU/0ydP7mv8W+vb7QPcr3ytNdXF9bro22Y7bj7Zf+/5e7C/73n67/xrB1Iy9URj6uDPOjzvj1fgeZsnDRCrKMR3LsR2VaAcbarhhDXcEIhLDcSROx6U4E5fjZgzHoxiJt3PJ9GZwpV151l4c+73B+fGXExniT6JM1AELXkAM6XgMP5YTZEIWvN+8x96yP86/HmkfeR30BDeCq6FruBPGwn1qRw26oBG6Ql8N9qqpBupSDaqaqtbOeqAPtE9H9a6ua4yag2bZtBiT0RqTSZtKYzeKbdmu2Fors26rtyFbtJX2mzudd3CO+7zBVdzBKraziKWsZzf7OcUPuIzfccG8beSYgWdMypiWsTBjeUZ2xraMHRl1GW0ZwgxVhjlDyrAzchn1jJlUWRX48WpiZWxuhR6qmw57kBDolGzsgvY89rhb7XvJzwQfY4+20SX4OtWreKpuSFaXlECpiOVamcv4JA4/x8nKhM2qKCxtMjn4oyulp5+2+DzPxYtYzPSoPf9Yvlvd4vcuYU3142xsRkmAfbwfK6ODt6039/4JpW8VEqlHIZIunBL+6JmzfHyE3o3mF33fTPtyd+kt8NrwT5yY3tXcECqX0RZRjsN416y3bBO8IjD
+ <rect x="0" y="0" width="1775.4295814700522" height="1691.8333333333335" fill="#ffffff"/><g stroke-linecap="round" transform="translate(432.4951915572758 194.2386962872556) rotate(0 67.83414177602211 24.5)"><path d="M12.25 0 C38.27 1.54, 69.71 0.86, 123.42 0 M12.25 0 C57.08 1.25, 100.41 1.21, 123.42 0 M123.42 0 C130.05 0.87, 137.62 3.02, 135.67 12.25 M123.42 0 C129.41 -0.25, 135.23 3.57, 135.67 12.25 M135.67 12.25 C137.2 17.84, 137.08 24.32, 135.67 36.75 M135.67 12.25 C135.63 18.87, 135.53 27.61, 135.67 36.75 M135.67 36.75 C135.96 45.56, 130.18 48.49, 123.42 49 M135.67 36.75 C134.67 43.8, 132.19 48.93, 123.42 49 M123.42 49 C95.98 49.68, 66.49 49.35, 12.25 49 M123.42 49 C90.86 49.22, 59.02 49.84, 12.25 49 M12.25 49 C2.25 49.89, 1.02 46.81, 0 36.75 M12.25 49 C3.81 48.52, 1.25 44.93, 0 36.75 M0 36.75 C0.91 27.08, 1.15 18.34, 0 12.25 M0 36.75 C0.47 29.41, 0.25 22.37, 0 12.25 M0 12.25 C-0.6 2.28, 3.59 0.5, 12.25 0 M0 12.25 C-0.87 4.69, 5.95 0.6, 12.25 0" stroke="#1e1e1e" stroke-width="0.5" fill="none"/></g><g transform="translate(437.6813459675752 211.34101807252205) rotate(0 62.647987365722656 7.397678214733503)"><text x="62.647987365722656" y="0" font-family="Virgil, Segoe UI Emoji" font-size="11.836285143573637px" fill="#1e1e1e" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">ListPodSandboxStats</text></g><g stroke-linecap="round" transform="translate(430.80662958052994 271.7021675857842) rotate(0 67.83414177602211 24.5)"><path d="M12.25 0 C34.97 0.97, 59.23 -1.52, 123.42 0 M12.25 0 C40.77 0.34, 68.84 -0.06, 123.42 0 M123.42 0 C132.18 -0.16, 134.7 5.15, 135.67 12.25 M123.42 0 C133.44 1.32, 136.16 6.03, 135.67 12.25 M135.67 12.25 C135.14 19.88, 133.97 29.85, 135.67 36.75 M135.67 12.25 C135.08 21.23, 135.94 30.75, 135.67 36.75 M135.67 36.75 C136.32 45.43, 130.5 50.16, 123.42 49 M135.67 36.75 C136.02 43.05, 130.87 48.21, 123.42 49 M123.42 49 C83.36 47.82, 40.33 49.98, 12.25 49 M123.42 49 C88.35 49.03, 52.52 49.67, 12.25 49 M12.25 49 C5.04 50.61, 0.69 45.22, 0 36.75 M12.25 49 C4 50.41, -1.68 44.04, 0 36.75 M0 36.75 C-0.96 27.04, 0.16 18.04, 0 12.25 M0 36.75 C-0.03 30.79, -0.54 24.97, 0 12.25 M0 12.25 C1.26 5.34, 4.4 -1.81, 12.25 0 M0 12.25 C1.86 5.23, 3.09 0.52, 12.25 0" stroke="#1e1e1e" stroke-width="0.5" fill="none"/></g><g transform="translate(447.3833250674895 288.80448937105064) rotate(0 51.2574462890625 7.397678214733503)"><text x="51.2574462890625" y="0" font-family="Virgil, Segoe UI Emoji" font-size="11.836285143573637px" fill="#1e1e1e" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">PodSandboxStats</text></g><g stroke-linecap="round" transform="translate(732.80662958053 231.7021675857842) rotate(0 67.83414177602211 24.5)"><path d="M12.25 0 C37.96 -0.25, 58.44 0.26, 123.42 0 M123.42 0 C130.73 1.63, 137.21 3.69, 135.67 12.25 M135.67 12.25 C134.46 18.36, 134.06 28.96, 135.67 36.75 M135.67 36.75 C136.93 45.64, 130.11 49.46, 123.42 49 M123.42 49 C101.97 49.01, 78.66 48.81, 12.25 49 M12.25 49 C2.69 49.52, 1.03 43.94, 0 36.75 M0 36.75 C-1.43 30.68, -0.02 19.27, 0 12.25 M0 12.25 C1.09 3.03, 5.16 1.26, 12.25 0" stroke="#1e1e1e" stroke-width="1" fill="none" stroke-dasharray="8 8.5"/></g><g transform="translate(749.3833250674895 248.80448937105064) rotate(0 51.2574462890625 7.397678214733503)"><text x="51.2574462890625" y="0" font-family="Virgil, Segoe UI Emoji" font-size="11.836285143573637px" fill="#1e1e1e" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">PodSandboxStats</text></g><g stroke-linecap="round" transform="translate(1036.6301589922946 190.46687346813712) rotate(0 67.83414177602211 24.5)"><path d="M12.25 0 C44.85 -2.05, 71.72 -2.23, 123.42 0 C128.58 0.43, 133.23 2.22, 135.67 12.25 C133.68 21.65, 135.98 28.32, 135.67 36.75 C134.29 45.33, 131.56 47.33, 123.42 49 C87.17 48.45, 48.96 48.31, 12.25 49 C1.79 48.77, 2.42 45.51, 0 36.75 C-1.34 31.01, 0.19 28.62, 0 12.25 C-1.68 3.66, 3.91 3.54, 12.25 0" stroke="none" stroke-width="0" fill="#b2f2bb"/><path d="M12.25 0 C55
\ No newline at end of file
--
2.25.1