-
Notifications
You must be signed in to change notification settings - Fork 605
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
Bug 1961064: Fix documentation link to network policies #8869
Conversation
@@ -199,7 +199,7 @@ const Details_ = ({ obj: np, flags }) => { | |||
<SectionHeading text={t('network-policy~Ingress rules')} /> | |||
<p className="co-m-pane__explanation"> | |||
{t( | |||
'network-policy~Pods accept all traffic by default. They can be isolated via NetworkPolicies which specify a whitelist of ingress rules. When a Pod is selected by a NetworkPolicy, it will reject all traffic not explicitly allowed via a NetworkPolicy. See more details in:', | |||
'network-policy~Pods accept all traffic by default. They can be isolated via NetworkPolicies which specify a whitelist of ingress rules. When a Pod is selected by a NetworkPolicy, it will reject all traffic not explicitly allowed via a NetworkPolicy. See more details in: ', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should actually be using the Trans
component so that the link is part of the message and can be translated.
https://react.i18next.com/latest/trans-component
Here's an example:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure I'll look into it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
In general, you shouldn't modify the ja, ko, or zh files. The changes will get overwritten when we get translations back from the translation team. The change you made shouldn't affect the translation though, so not a huge deal for me. :) |
@spadgett I believe the test failures are unrelated to this code change |
/retest |
@@ -9,7 +9,7 @@ | |||
"NS selector": "NS セレクター", | |||
"NetworkPolicy details": "ネットワークポリシーの詳細", | |||
"Ingress rules": "Ingress ルール", | |||
"Pods accept all traffic by default. They can be isolated via NetworkPolicies which specify a whitelist of ingress rules. When a Pod is selected by a NetworkPolicy, it will reject all traffic not explicitly allowed via a NetworkPolicy. See more details in:": "Pod はデフォルトですべてのトラフィックを受け入れます。これらは、ingress ルールのホワイトリストを指定するネットワークポリシー経由で分離できます。Pod がネットワークポリシーによって選択されると、ネットワークポリシーで明示的に許可されていないすべてのトラフィックが拒否されます。詳細については、以下を参照してください。", | |||
"Pods accept all traffic by default. They can be isolated via NetworkPolicies which specify a whitelist of ingress rules. When a Pod is selected by a NetworkPolicy, it will reject all traffic not explicitly allowed via a NetworkPolicy. See more details in: ": "Pod はデフォルトですべてのトラフィックを受け入れます。これらは、ingress ルールのホワイトリストを指定するネットワークポリシー経由で分離できます。Pod がネットワークポリシーによって選択されると、ネットワークポリシーで明示的に許可されていないすべてのトラフィックが拒否されます。詳細については、以下を参照してください。", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There shouldn't be changes in the ja/ko/zh files, only en. The other files will be updated when we get translations back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Also fix missing space in english text i18n network-policy with link: use Trans
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/hold
@jotak Thanks, do you mind opening a Bugzilla bug for this? We'll need it to merge and backport if the link is broken in previous versions.
@jotak: This pull request references Bugzilla bug 1961064, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/bugzilla refresh |
@jhadvig: This pull request references Bugzilla bug 1961064, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/hold cancel |
@jhadvig: once the present PR merges, I will cherry-pick it on top of release-4.7 in a new PR and assign it to you. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jhadvig, jotak, spadgett 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 |
@jotak: All pull requests linked via external trackers have merged: Bugzilla bug 1961064 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@jhadvig: #8869 failed to apply on top of branch "release-4.7":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Also fix missing space in english text
The link was outdated, leading to 404. (I'm not sure since which version it changed)