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

Fix bug: Sending nil when no namespaced pod owners found #91

Merged

Conversation

NetanelBollag
Copy link
Contributor

Description

When the operator doesn't find pod owners for ReportActiveCertificateRequesters it sends a nil value. This PR initialize the slice to non-nil value and also skip the API call since the backend has nothing to do if the list is empty.

@NetanelBollag NetanelBollag requested a review from omris94 November 9, 2023 18:31
@NetanelBollag NetanelBollag requested review from amitlicht and removed request for omris94 November 12, 2023 08:47
@NetanelBollag NetanelBollag merged commit e7f5e58 into main Nov 12, 2023
4 checks passed
@NetanelBollag NetanelBollag deleted the netanelb/fix-bug/sending-nil-namespaced-pod-owners branch November 12, 2023 08:47
@github-actions github-actions bot locked and limited conversation to collaborators Nov 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants