Skip to content

pkg/loadbalancer/legacy: use logger directly from hive #39578

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

Merged
merged 1 commit into from
May 19, 2025
Merged

Conversation

aanm
Copy link
Member

@aanm aanm commented May 16, 2025

Running Cilium with enable-experimental-lb sets the LRPManager to nil. This causes the API endpoint's logger to also be nil, leading to a panic when accessing the /lrp endpoint. This commit fixes the issue.

Fixes: 87ecc88 ("legacy/redirectpolicy: migrate to slog")

Running Cilium with enable-experimental-lb sets the LRPManager to nil.
This causes the API endpoint's logger to also be nil, leading to a
panic when accessing the /lrp endpoint. This commit fixes the issue.

Fixes: 87ecc88 ("legacy/redirectpolicy: migrate to slog")
Signed-off-by: André Martins <andre@cilium.io>
@aanm aanm requested a review from a team as a code owner May 16, 2025 12:18
@aanm aanm requested a review from ysksuzuki May 16, 2025 12:18
@aanm aanm added kind/bug This is a bug in the Cilium logic. release-note/misc This PR makes changes that have no direct user impact. feature/slog labels May 16, 2025
@aanm
Copy link
Member Author

aanm commented May 16, 2025

/test

@aanm aanm added this pull request to the merge queue May 19, 2025
Merged via the queue into main with commit 5bf3e1c May 19, 2025
289 of 295 checks passed
@aanm aanm deleted the pr/fix-lrp-panic branch May 19, 2025 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/slog kind/bug This is a bug in the Cilium logic. 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.

2 participants