-
Notifications
You must be signed in to change notification settings - Fork 220
fix: naming and minor structural improvements #1130
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
Conversation
.../main/java/io/javaoperatorsdk/operator/processing/event/source/SecondaryToPrimaryMapper.java
Outdated
Show resolved
Hide resolved
7679b62
to
cc377a8
Compare
@@ -103,6 +103,6 @@ private void handleKubernetesClientException(Exception e) { | |||
|
|||
@Override | |||
public Optional<T> getSecondaryResource(T primary) { | |||
return get(ResourceID.fromResource(primary)); | |||
throw new IllegalStateException("This method should not be called here. Primary: " + primary); |
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.
Why this change?
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.
It does not makes sense imo to ask for the secondary resource from the ControllerEventSource
. It basically does not have secondary, so this operation should fail.
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.
LGTM
cc377a8
to
157d335
Compare
Kudos, SonarCloud Quality Gate passed! |
No description provided.