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: crash due to nil labelSelector #1038

Merged
merged 1 commit into from May 7, 2023
Merged

Conversation

weisdd
Copy link
Collaborator

@weisdd weisdd commented May 7, 2023

This PR should prevent operator from crashing due to nil dereference when CRs are created without label selectors.

@weisdd weisdd added the bug Something isn't working label May 7, 2023
@weisdd weisdd requested review from pb82, NissesSenap and HVBE May 7, 2023 14:17
@weisdd weisdd self-assigned this May 7, 2023
@weisdd weisdd added the v5 A v5 specifc issue/feature label May 7, 2023
@NissesSenap
Copy link
Collaborator

@weisdd do we need the same change for the other controllers?

@weisdd
Copy link
Collaborator Author

weisdd commented May 7, 2023

@weisdd Not really, it's a shared function that's used by multiple controllers :)

@NissesSenap
Copy link
Collaborator

Haha maybe should have read the file name 🤦‍♂️

@NissesSenap NissesSenap merged commit 09a7de7 into master May 7, 2023
9 checks passed
@NissesSenap NissesSenap deleted the fix/nil-label-selector branch May 7, 2023 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v5 A v5 specifc issue/feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants