-
Notifications
You must be signed in to change notification settings - Fork 215
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
matchers ignore list #1880
matchers ignore list #1880
Conversation
@metacosm in a separate PR will change the behavior, in a way that Kubernetes Service will be a special case, but the default behavior will use equality matcher (if no objections). |
f431b34
to
a96e6ad
Compare
85d344e
to
d16ac21
Compare
public static <R extends HasMetadata> Result<R> match(R desired, R actualResource, | ||
boolean considerMetadata) { | ||
return match(desired, actualResource, considerMetadata, false); | ||
return match(desired, actualResource, false, false, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You changed the implementation but didn't change the javadoc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but that did not change the behavior I believe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One parameter got changed from true
to false
. If changing this doesn't change the behavior, then what's the point of the parameter? 😄
More seriously, though, before this commit the metadata was considered, now it's not anymore so the javadoc is not correct anymore with respect to the implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm checking this, but actually cannot see, where. So it is not considered on the main now. Maybe we can take a look offline.
d16ac21
to
54fa804
Compare
Kudos, SonarCloud Quality Gate passed! |
[skip ci]
Co-authored-by: Chris Laprun <[email protected]>
Co-authored-by: Chris Laprun <[email protected]>
Co-authored-by: Chris Laprun <[email protected]> � Conflicts: � operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/GenericKubernetesResourceMatcher.java � operator-framework-core/src/test/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/GenericKubernetesResourceMatcherTest.java
Co-authored-by: Chris Laprun <[email protected]> � Conflicts: � operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/GenericKubernetesResourceMatcher.java � operator-framework-core/src/test/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/GenericKubernetesResourceMatcherTest.java
Co-authored-by: Chris Laprun <[email protected]> � Conflicts: � operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/GenericKubernetesResourceMatcher.java � operator-framework-core/src/test/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/GenericKubernetesResourceMatcherTest.java
Co-authored-by: Chris Laprun <[email protected]> � Conflicts: � operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/GenericKubernetesResourceMatcher.java � operator-framework-core/src/test/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/GenericKubernetesResourceMatcherTest.java
Co-authored-by: Chris Laprun <[email protected]> � Conflicts: � operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/GenericKubernetesResourceMatcher.java � operator-framework-core/src/test/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/GenericKubernetesResourceMatcherTest.java
Co-authored-by: Chris Laprun <[email protected]> � Conflicts: � operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/GenericKubernetesResourceMatcher.java � operator-framework-core/src/test/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/GenericKubernetesResourceMatcherTest.java
Co-authored-by: Chris Laprun <[email protected]> � Conflicts: � operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/GenericKubernetesResourceMatcher.java � operator-framework-core/src/test/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/GenericKubernetesResourceMatcherTest.java
No description provided.