-
Notifications
You must be signed in to change notification settings - Fork 3.4k
labelsfilter: Ensure entity relevant labels are always applied #31178
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
Conversation
/test |
Entities are special selectors used by network policies. The Cluster entity relies on the `io.cilium.k8s.policy.cluster` label which is removed by Cilium if a strict identity label configuration is applied. This PR adds the relevant Cilium policy label to the list of default labels so it will always be applied regardless of configuration, and includes this label to the associated test file. Fixes: cilium#18878 Signed-off-by: soggiest <nicholas@isovalent.com>
9361d6e
to
be5a244
Compare
I realized my previous commit contained an extra label that wasn't actually used by as a selector for |
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.
Looks good! My only request would be a slightly more descriptive release note. But, I like it.
/test |
Would someone mind kicking off another test, the errors I'm seeing from the EKS and Ginkgo tests don't seem related to my change. I'm wondering if these are flakes. Tangent question: Why is this network policy file named |
Tangent looks like a bug. May be worth filing an issue and/or PR and/or use |
PR cilium#31178 added "io.cilium.k8s.policy.cluster" label to default ones that are propagated even when strict filters are applied. Fixes: cilium#31178 Signed-off-by: Marcel Zieba <marcel.zieba@isovalent.com>
[ upstream commit d3dc7e8 ] [ backporter's note: added `any:` prefix as with other labels because commit fee6107 ("metrics: add lower-cardinality metrics for node connectivity") which removes these prefixes across all docs wasn't backported. ] PR #31178 added "io.cilium.k8s.policy.cluster" label to default ones that are propagated even when strict filters are applied. Fixes: #31178 Signed-off-by: Marcel Zieba <marcel.zieba@isovalent.com>
[ upstream commit d3dc7e8 ] [ backporter's note: added `any:` prefix as with other labels because commit fee6107 ("metrics: add lower-cardinality metrics for node connectivity") which removed these prefixes across all docs wasn't backported to v1.16. ] PR #31178 added "io.cilium.k8s.policy.cluster" label to default ones that are propagated even when strict filters are applied. Fixes: #31178 Signed-off-by: Marcel Zieba <marcel.zieba@isovalent.com>
[ upstream commit d3dc7e8 ] [ backporter's note: added `any:` prefix as with other labels because commit 1918908 ("Improve identity-relevant-labels.rst page") which removed these prefixes across all docs wasn't backported to v1.16. ] PR #31178 added "io.cilium.k8s.policy.cluster" label to default ones that are propagated even when strict filters are applied. Fixes: #31178 Signed-off-by: Marcel Zieba <marcel.zieba@isovalent.com>
[ upstream commit d3dc7e8 ] [ backporter's note: added `any:` prefix as with other labels because commit 1918908 ("Improve identity-relevant-labels.rst page") which removed these prefixes across all docs wasn't backported to v1.16. ] PR #31178 added "io.cilium.k8s.policy.cluster" label to default ones that are propagated even when strict filters are applied. Fixes: #31178 Signed-off-by: Marcel Zieba <marcel.zieba@isovalent.com>
PR cilium#31178 added "io.cilium.k8s.policy.cluster" label to default ones but didn't update the doc PR cilium#35422 added the label in the doc but didn't update the example Fixes: cilium#31178 Signed-off-by: Liyi Huang <liyi.huang@isovalent.com>
[ upstream commit 4b4f45e ] PR #31178 added "io.cilium.k8s.policy.cluster" label to default ones but didn't update the doc PR #35422 added the label in the doc but didn't update the example Fixes: #31178 Signed-off-by: Liyi Huang <liyi.huang@isovalent.com> Signed-off-by: Fabio Falzoi <fabio.falzoi@isovalent.com>
[ upstream commit 4b4f45e ] PR #31178 added "io.cilium.k8s.policy.cluster" label to default ones but didn't update the doc PR #35422 added the label in the doc but didn't update the example Fixes: #31178 Signed-off-by: Liyi Huang <liyi.huang@isovalent.com> Signed-off-by: Fabio Falzoi <fabio.falzoi@isovalent.com>
[ upstream commit 4b4f45e ] PR #31178 added "io.cilium.k8s.policy.cluster" label to default ones but didn't update the doc PR #35422 added the label in the doc but didn't update the example Fixes: #31178 Signed-off-by: Liyi Huang <liyi.huang@isovalent.com> Signed-off-by: Fabio Falzoi <fabio.falzoi@isovalent.com>
[ upstream commit 4b4f45e ] PR #31178 added "io.cilium.k8s.policy.cluster" label to default ones but didn't update the doc PR #35422 added the label in the doc but didn't update the example Fixes: #31178 Signed-off-by: Liyi Huang <liyi.huang@isovalent.com> Signed-off-by: Fabio Falzoi <fabio.falzoi@isovalent.com>
Entities are special selectors used by network policies. The Cluster entity relies on the
io.cilium.k8s.policy.cluster
label to select endpoints which is removed by Cilium if a strict identity label configuration is applied. This PR adds the relevant Cilium policy label to the list of default labels so it will always be applied regardless of configuration, and includes this label to the associated test.Fixes: #18878
Please ensure your pull request adheres to the following guidelines:
description and a
Fixes: #XXX
line if the commit addresses a particularGitHub issue.
Fixes: <commit-id>
tag, thenplease add the commit author[s] as reviewer[s] to this issue.