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

k8s: Update comment about rule preprocessing #25864

Merged
merged 2 commits into from Jun 9, 2023

Conversation

odinuge
Copy link
Member

@odinuge odinuge commented Jun 2, 2023

There is a difference between headless services, and services without a selector (sometimes referred to as external services in cilium). Those services without a selector can be headless or have a ClusterIP; but the important thing, is that this function care about services without a selector, independent on the ClusterIP. See commit messages for more context.

@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jun 2, 2023
@github-actions github-actions bot added the kind/community-contribution This was a contribution made by a community member. label Jun 2, 2023
@odinuge odinuge marked this pull request as ready for review June 2, 2023 13:36
@odinuge odinuge requested review from a team as code owners June 2, 2023 13:36
pkg/k8s/rule_translate.go Outdated Show resolved Hide resolved
There is a difference between headless services, and services without a
selector (sometimes referred to as external services in cilium). Those
services without a selector can be headless or have a ClusterIP; but the
important thing, is that this function care about services without a
selector, independent on the ClusterIP.

Signed-off-by: Odin Ugedal <ougedal@palantir.com>
Signed-off-by: Odin Ugedal <odin@uged.al>
.ToService rules only apply to services without selectors. The term
headless service is a service without a ClusterIP; and those are
distinct terms.

Signed-off-by: Odin Ugedal <ougedal@palantir.com>
@joestringer joestringer added the release-note/misc This PR makes changes that have no direct user impact. label Jun 2, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jun 2, 2023
Copy link
Member

@qmonnet qmonnet left a comment

Choose a reason for hiding this comment

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

Thank you

@joamaki joamaki requested review from joestringer and removed request for joamaki June 5, 2023 12:03
@joamaki
Copy link
Contributor

joamaki commented Jun 5, 2023

@joestringer could you take a quick look to see if this is correct from the policy perspective? Do we potentially have more cases where this might be wrong?

@odinuge
Copy link
Member Author

odinuge commented Jun 9, 2023

Are we good to merge this now? Want to get this merged to avoid conflicts with other pending work

@qmonnet
Copy link
Member

qmonnet commented Jun 9, 2023

Ping @nathanjsweet

@joestringer joestringer merged commit 959fb0d into cilium:main Jun 9, 2023
48 checks passed
@odinuge odinuge deleted the service-endpoints branch June 16, 2023 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/community-contribution This was a contribution made by a community member. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants