Skip to content

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.

@phisco phisco closed this Nov 25, 2024
@phisco phisco reopened this Nov 25, 2024
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