Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zh] sync concepts/workloads/pods/downward-api.md #42734

Merged
merged 1 commit into from
Aug 27, 2023

Conversation

KKtheGhost
Copy link
Contributor

PR Summary

  • EN upstream: content/en/docs/concepts/workloads/pods/downward-api.md
  • Sync to: content/zh-cn/docs/concepts/workloads/pods/downward-api.md

Sync check by scripts/lsync.sh on main branch:

$ scripts/lsync.sh content/zh-cn/docs/concepts/workloads/pods/downward-api.md
diff --git a/content/en/docs/concepts/workloads/pods/downward-api.md b/content/en/docs/concepts/workloads/pods/downward-api.md
index 971475199c..e084c92abd 100644
--- a/content/en/docs/concepts/workloads/pods/downward-api.md
+++ b/content/en/docs/concepts/workloads/pods/downward-api.md
@@ -44,7 +44,7 @@ You can pass information from available Container-level fields using

 ### Information available via `fieldRef` {#downwardapi-fieldRef}

-For most Pod-level fields, you can provide them to a container either as
+For some Pod-level fields, you can provide them to a container either as
 an environment variable or using a `downwardAPI` volume. The fields available
 via either mechanism are:

@@ -75,9 +75,16 @@ The following information is available through environment variables
 `status.hostIP`
 : the primary IP address of the node to which the Pod is assigned

+`status.hostIPs`
+: the IP addresses is a dual-stack version of `status.hostIP`, the first is always the same as `status.hostIP`.
+  The field is available if you enable the `PodHostIPs` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/).
+
 `status.podIP`
 : the pod's primary IP address (usually, its IPv4 address)

+`status.podIPs`
+: the IP addresses is a dual-stack version of `status.podIP`, the first is always the same as `status.podIP`
+
 The following information is available through a `downwardAPI` volume
 `fieldRef`, **but not as environment variables**:

Sync check byscripts/lsync.sh on sync/ingress-controllers branch:

$ scripts/lsync.sh content/zh-cn/docs/concepts/workloads/pods/downward-api.md
content/zh-cn/docs/concepts/workloads/pods/downward-api.md is still in sync

Thanks to the reviewers in advance.
Best Regards,

Kivinsae Fang

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 26, 2023
@k8s-ci-robot k8s-ci-robot added the language/zh Issues or PRs related to Chinese language label Aug 26, 2023
@k8s-ci-robot k8s-ci-robot added sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 26, 2023
@netlify
Copy link

netlify bot commented Aug 26, 2023

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit 1a50f23
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/64ea046c6c649f00089214a8
😎 Deploy Preview https://deploy-preview-42734--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

: the IP addresses is a dual-stack version of `status.podIP`, the first is always the same as `status.podIP`
-->
`status.podIPs`
: 这组 IP 地址是 `status.podIP` 的双协议栈版本, 第一个 IP 始终与 `status.podIP` 相同。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
: 这组 IP 地址是 `status.podIP` 的双协议栈版本, 第一个 IP 始终与 `status.podIP` 相同。
: 这组 IP 地址是 `status.podIP` 的双协议栈版本第一个 IP 始终与 `status.podIP` 相同。

Copy link
Contributor

@tengqm tengqm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 27, 2023
Copy link
Member

@ydFu ydFu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 27, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: efd126e8a8c146b2dc037fb5c2e6caa45b756d7b

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tengqm, ydFu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit b32835f into kubernetes:main Aug 27, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/zh Issues or PRs related to Chinese language lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants