-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Incorrect type for 'ports' field in "Network Policies" page examples #44825
Comments
This issue is currently awaiting triage. SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the The 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. |
Page reported in issue: https://kubernetes.io/docs/concepts/services-networking/network-policies |
/sig network |
/retitle Incorrect type for 'ports' field in "Network Policies" page examples |
Hi, Your first example translates to: Whereas the second example translates to:
Both are valid network policy definitions. The below tool is handy if you want to translate the meaning of a network policy in a readable form. |
Hi, thank you so much for your explanation. It makes sense. Please can you reference me to the section in documentation where this is explained? I tried to find it out but without success. Anyway we can close this ticket. |
I'm not aware if the exact example you mentioned in this issue is documented. There is a similar (not identical) scenario documented here: |
Looks like the issue doesn't require any changes; the current documentation stands correct.
Closing this issue in recognition of the issue reporter's indication to close it. /close |
@dipesh-rawat: Closing this issue. 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. |
I'am checking some samples about
NetworkPolicy
object and it seems to be bug inports
. According Kubernetes API reference it is array but in all samples published in https://kubernetes.io/docs/concepts/services-networking/network-policies/ there is ports asNetworkPolicyPort
.Example that it does not work properly (but without error during creation):
Example that it works as expected:
The text was updated successfully, but these errors were encountered: