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

policy: Return a real nil rather than a non-nil interface #29022

Merged
merged 1 commit into from Nov 7, 2023

Conversation

jrajahalme
Copy link
Member

@jrajahalme jrajahalme commented Nov 7, 2023

Callers of lookupOrCreate() test the return value for nilness, but for that to succeed it needs to return nil rather than a nil pointer cast to the SelectorPolicy interface.

This came up in an integration test development, there are no know cases of this being a problem in production.

Callers of lookupOrCreate() test the return value for nilness, but for
that to succeed it needs to return nil rather than a nil pointer cast to
the SelectorPolicy interface.

This came up in an integration test development, there are no know cases
of this being a problem in production.

Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
@jrajahalme jrajahalme added kind/bug This is a bug in the Cilium logic. release-note/misc This PR makes changes that have no direct user impact. labels Nov 7, 2023
@jrajahalme jrajahalme self-assigned this Nov 7, 2023
@jrajahalme jrajahalme requested a review from a team as a code owner November 7, 2023 10:00
@jrajahalme jrajahalme added the sig/policy Impacts whether traffic is allowed or denied based on user-defined policies. label Nov 7, 2023
@jrajahalme
Copy link
Member Author

/test

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Nov 7, 2023
@nathanjsweet nathanjsweet added affects/v1.14 This issue affects v1.14 branch affects/v1.12 This issue affects v1.12 branch affects/v1.13 This issue affects v1.13 branch labels Nov 7, 2023
@nathanjsweet nathanjsweet merged commit 0326706 into cilium:main Nov 7, 2023
61 of 62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/v1.12 This issue affects v1.12 branch affects/v1.13 This issue affects v1.13 branch affects/v1.14 This issue affects v1.14 branch kind/bug This is a bug in the Cilium logic. 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/policy Impacts whether traffic is allowed or denied based on user-defined policies.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants