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

pkg/endpoint: Readd GetRealizedPolicyRuleLabelsForKey #14257

Merged

Conversation

gandro
Copy link
Member

@gandro gandro commented Dec 3, 2020

This brings back the GetRealizedPolicyRuleLabelsForKey helper which is
used by external client code and was accidentally removed as unused.
This commit also extends the Hubble unit tests to invoke it, to avoid
another accidental removal.

Fixes: 0ba1967 ("pkg/endpoint: remove unused functions")

This brings back the GetRealizedPolicyRuleLabelsForKey helper which is
used by external client code and was accidentally removed as unused.
This commit also extends the Hubble unit tests to invoke it, to avoid
another accidental removal.

Fixes: 0ba1967 ("pkg/endpoint: remove unused functions")

Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
@gandro gandro added release-note/misc This PR makes changes that have no direct user impact. sig/hubble Impacts hubble server or relay needs-backport/1.9 labels Dec 3, 2020
@gandro gandro requested a review from a team as a code owner December 3, 2020 13:03
@gandro gandro requested review from a team, jrajahalme and glibsm December 3, 2020 13:03
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.10.0 Dec 3, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.9.1 Dec 3, 2020
@gandro
Copy link
Member Author

gandro commented Dec 3, 2020

test-me-please

Copy link
Member

@pchaigno pchaigno left a comment

Choose a reason for hiding this comment

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

👍 for my code owners (I haven't looked at the new Hubble test in details).

@gandro
Copy link
Member Author

gandro commented Dec 3, 2020

@gandro
Copy link
Member Author

gandro commented Dec 3, 2020

retest-runtime

@gandro
Copy link
Member Author

gandro commented Dec 3, 2020

retest-4.9

@aanm aanm added this to Needs backport from master in 1.9.2 Dec 4, 2020
@aanm aanm removed this from Needs backport from master in 1.9.1 Dec 4, 2020
@Weil0ng
Copy link
Contributor

Weil0ng commented Dec 4, 2020

FWIW, removing GetRealizedPolicyRuleLabelsForKey breaks network policy logging on GKE too.

@ianvernon
Copy link
Member

I don't think we can ever remove exported functionality anymore given that Cilium is a dependency for Hubble, GKE network policy logging, etc.

@gandro
Copy link
Member Author

gandro commented Dec 7, 2020

retest-net-next

Edit: VM provisioning fail

@gandro
Copy link
Member Author

gandro commented Dec 7, 2020

retest-net-next

Provisioning keeps failing https://jenkins.cilium.io/job/Cilium-PR-K8s-1.12-net-next/1512/

@gandro
Copy link
Member Author

gandro commented Dec 7, 2020

retest-net-next

@gandro
Copy link
Member Author

gandro commented Dec 7, 2020

All required tests have passed.

@gandro gandro added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Dec 7, 2020
@nebril nebril merged commit 81afb1c into master Dec 8, 2020
@nebril nebril deleted the pr/gandro/bring-back-getrealizedpolicyrulelabelsforkey branch December 8, 2020 12:01
@joestringer joestringer moved this from Needs backport from master to Backport done to v1.9 in 1.9.2 Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact. sig/hubble Impacts hubble server or relay
Projects
No open projects
1.9.2
Backport done to v1.9
Development

Successfully merging this pull request may close these issues.

None yet