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

l2announcer: Fix panic when service labels are nil #26315

Merged

Conversation

dylandreimerink
Copy link
Member

There are scenarios in which the labels fields of a service object returns nil instead of an empty map. When this happens a panic is triggered, so we have to check for that and init the map if it is nil

Fixes: #26163

Fix panic due to nil-map assignment in l2announcer

There are scenarios in which the labels fields of a service object
returns `nil` instead of an empty map. When this happens a panic is
triggered, so we have to check for that and init the map if it is `nil`

Fixes: cilium#26163

Signed-off-by: Dylan Reimerink <dylan.reimerink@isovalent.com>
@dylandreimerink dylandreimerink added kind/bug This is a bug in the Cilium logic. release-note/bug This PR fixes an issue in a previous release of Cilium. release-blocker/1.14 This issue will prevent the release of the next version of Cilium. labels Jun 16, 2023
@dylandreimerink dylandreimerink requested a review from a team as a code owner June 16, 2023 13:13
@dylandreimerink
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 Jun 16, 2023
@dylandreimerink dylandreimerink merged commit bc8f580 into cilium:main Jun 16, 2023
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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-blocker/1.14 This issue will prevent the release of the next version of Cilium. release-note/bug This PR fixes an issue in a previous release of Cilium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

l2 announcer panic
2 participants