Skip to content

Commit

Permalink
GITBOOK-109: No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
mouuii authored and gitbook-bot committed Aug 31, 2024
1 parent 4437f9f commit 5eac1df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file added .gitbook/assets/截屏2024-08-31 10.48.50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ See https://kubernetes.io/docs/reference/using-api/server-side-apply/#conflicts
| //+mapType | x-kubernetes-map-type | atomic/granular | 适用于 map。 atomic 指 map 只能被单个的管理器整个的替换。 granular 指 map 支持多个管理器各自更新自己的字段。 |
| //+structType | x-kubernetes-map-type | atomic/granular | 适用于 structs;否则就像 //+mapType 有相同的用法和 openapi 注释. |
表格中的“Golang标记“在代码中对应的API结构体中定义,举`Service`为例,在`ServiceSpec`的定义中`Ports`字段的注释中有如下标记: ![image.png](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/f5afc6e0962a45f399080f3bcec2b2a5\~tplv-k3u1fbpfcp-zoom-in-crop-mark:1512:0:0:0.awebp?)
表格中的“Golang标记“在代码中对应的API结构体中定义,举`Service`为例,在`ServiceSpec`的定义中`Ports`字段的注释中有如下标记:
<figure><img src="../../.gitbook/assets/截屏2024-08-31 10.48.50.png" alt=""><figcaption></figcaption></figure>
这表明`service.spec.ports`这个数组由`ports.port`和`ports.protocol`的组合值来确定唯一性。例如我们通过**SSA** apply这样一个`service`:
Expand Down

0 comments on commit 5eac1df

Please sign in to comment.