Skip to content

feat: make it possible to also check annotations/labels when matching #1393

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 5 commits into from
Aug 25, 2022

Conversation

metacosm
Copy link
Collaborator

Fixes #1392

@metacosm metacosm self-assigned this Aug 10, 2022
@metacosm metacosm requested a review from csviri August 10, 2022 14:57
Copy link
Collaborator

@csviri csviri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is not clear to me in this impl, how it should be used in a real life dependent resource, that should override the match method?
Should we showcase that somehow?

@metacosm metacosm changed the base branch from main to next August 24, 2022 20:17
@metacosm metacosm requested a review from csviri August 24, 2022 20:17
@@ -169,26 +198,26 @@ instances are managed by JOSDK, an example of which can be seen below:
```java

@ControllerConfiguration(
labelSelector = SELECTOR,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't get this, we are both using the same formatter from maven, how was this not formatted? It should fail also on build if not properly formatted

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know but I've seen weird things going on with format… it doesn't appear as deterministic as it should be (or rather, the determinism is not obvious to me) 😓

Copy link
Collaborator

@csviri csviri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

37.1% 37.1% Coverage
0.0% 0.0% Duplication

@metacosm metacosm merged commit 97481a6 into next Aug 25, 2022
@metacosm metacosm deleted the fix-1392 branch August 25, 2022 13:53
csviri added a commit that referenced this pull request Sep 5, 2022
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.

Make it possible for GenericKubernetesResourceMatcher consider metadata as well
2 participants