-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
docs: Clarify that empty endpoint selectors implictly limit to namespace #14580
Conversation
Documentation/policy/language.rst
Outdated
@@ -143,8 +143,9 @@ the label ``role=frontend``. | |||
Egress Allow All | |||
~~~~~~~~~~~~~~~~~ | |||
|
|||
An empty `EndpointSelector` will select all endpoints, thus writing a rule that will allow | |||
all egress traffic from an endpoint may be done as follows: | |||
An empty `EndpointSelector` will select all endpoints in the pod's namespace, |
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.
in the pod's namespace
Well, technically, this would be the CNP namespace ("default" if not specified).
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.
Thanks, PR updated.
00d29a3
to
7686f26
Compare
Documentation/policy/language.rst
Outdated
@@ -143,8 +143,9 @@ the label ``role=frontend``. | |||
Egress Allow All | |||
~~~~~~~~~~~~~~~~~ | |||
|
|||
An empty `EndpointSelector` will select all endpoints, thus writing a rule that will allow | |||
all egress traffic from an endpoint may be done as follows: | |||
An empty `EndpointSelector` will select all endpoints in the pod's |
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.
Reads a bit awkward. How about this - "will select all egress endpoints from an endpoint based on the CNP namespace ("default" ...)"?
An empty `EndpointSelector` will select all endpoints in the pod's | |
An empty `EndpointSelector` will select all egress endpoints from an endpoint based on the `CiliumNetworkPolicy` namespace ("default" by default) |
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.
I think the first clause in that sentence is not specific to the following example. That is, EndpointSelector
isn't specific to egress :-)
We could break into two sentences if the current form sounds weird.
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.
Since it's listed under the Egress
section, further emphasized by the second clause, it doesn't confuse me. So I'll leave the decision to @twpayne.
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.
OK, I've split this into two sentences which hopefully makes it clearer.
7686f26
to
51deeb1
Compare
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, thanks for taking care of this!
Signed-off-by: Tom Payne <tom@isovalent.com>
51deeb1
to
84de942
Compare
As discussed on Slack with @kaworu, @aditighag, and @pchaigno.