Skip to content

Commit

Permalink
fix sidecarset sourceContainerNameFrom docs
Browse files Browse the repository at this point in the history
Signed-off-by: 守辰 <shouchen.zz@alibaba-inc.com>
  • Loading branch information
furykerry committed Sep 13, 2024
1 parent cc4ea61 commit a8e1d3e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/user-manuals/sidecarset.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ spec:
- Share pod containers volumes: If ShareVolumePolicy.type is enabled, the sidecar container will share the other container's VolumeMounts in the pod(don't contains the injected sidecar container)
- Environment variable sharing
- Environment variables can be fetched from another container through spec.containers[x].transferenv, and the environment variable named envName from the container named sourceContainerName is copied to this container
- sourceContainerNameFrom support downwardAPI for container name, such as metadata.name, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`
- sourceContainerNameFrom support downwardAPI for container name, such as `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`

#### injection pause
**FEATURE STATE:** Kruise v0.10.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ spec:
- 共享所有卷:通过 spec.containers[i].shareVolumePolicy.type = enabled | disabled 来控制是否挂载pod应用容器的卷,常用于日志收集等 sidecar,配置为 enabled 后会把应用容器中所有挂载点注入 sidecar 同一路经下(sidecar中本身就有声明的数据卷和挂载点除外)
- 环境变量共享
- 可以通过 spec.containers[i].transferEnv 来从别的容器获取环境变量,会把名为 sourceContainerName 容器中名为 envName 的环境变量拷贝到本容器
- sourceContainerNameFrom 支持 downwardAPI 来获取容器name,比如:metadata.name, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`
- sourceContainerNameFrom 支持 downwardAPI 来获取容器name,比如:`metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`

#### 注入暂停
**FEATURE STATE:** Kruise v0.10.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ spec:
- 共享所有卷:通过 spec.containers[i].shareVolumePolicy.type = enabled | disabled 来控制是否挂载pod应用容器的卷,常用于日志收集等 sidecar,配置为 enabled 后会把应用容器中所有挂载点注入 sidecar 同一路经下(sidecar中本身就有声明的数据卷和挂载点除外)
- 环境变量共享
- 可以通过 spec.containers[i].transferEnv 来从别的容器获取环境变量,会把名为 sourceContainerName 容器中名为 envName 的环境变量拷贝到本容器
- sourceContainerNameFrom 支持 downwardAPI 来获取容器name,比如:metadata.name, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`
- sourceContainerNameFrom 支持 downwardAPI 来获取容器name,比如:`metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`

#### 注入暂停
**FEATURE STATE:** Kruise v0.10.0
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-v1.6/user-manuals/sidecarset.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ spec:
- Share pod containers volumes: If ShareVolumePolicy.type is enabled, the sidecar container will share the other container's VolumeMounts in the pod(don't contains the injected sidecar container)
- Environment variable sharing
- Environment variables can be fetched from another container through spec.containers[x].transferenv, and the environment variable named envName from the container named sourceContainerName is copied to this container
- sourceContainerNameFrom support downwardAPI for container name, such as metadata.name, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`
- sourceContainerNameFrom support downwardAPI for container name, such as `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`

#### injection pause
**FEATURE STATE:** Kruise v0.10.0
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-v1.7/user-manuals/sidecarset.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ spec:
- Share pod containers volumes: If ShareVolumePolicy.type is enabled, the sidecar container will share the other container's VolumeMounts in the pod(don't contains the injected sidecar container)
- Environment variable sharing
- Environment variables can be fetched from another container through spec.containers[x].transferenv, and the environment variable named envName from the container named sourceContainerName is copied to this container
- sourceContainerNameFrom support downwardAPI for container name, such as metadata.name, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`
- sourceContainerNameFrom support downwardAPI for container name, such as `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`

#### injection pause
**FEATURE STATE:** Kruise v0.10.0
Expand Down

0 comments on commit a8e1d3e

Please sign in to comment.