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/empty labelselector #22

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Avarei
Copy link

@Avarei Avarei commented Jul 10, 2024

Description of your changes

Currently the function does NOT request a resource when a fieldPath was specified as optional and no other labels have been chosen.

This specifically intended behaviour is kept and a flag is added which tracks if optional fields were not found.

If not the matchLabels is added even if it is empty.

Also an appropriate test was added

Fixes #21

I have:

@phisco
Copy link
Collaborator

phisco commented Aug 28, 2024

looks like CI got stuck, I'll try closing and reopening this PR.

@phisco phisco closed this Aug 28, 2024
@phisco phisco reopened this Aug 28, 2024
@Avarei
Copy link
Author

Avarei commented Aug 28, 2024

sorry. did not notice the complexity lint error. I will try to fix it later.

@Avarei
Copy link
Author

Avarei commented Aug 30, 2024

@phisco this should do it. my version of golangci-lint also detected a dangerous kind of integer conversion which I also fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty Label Selector does not get propegated to crossplane
2 participants