Skip to content

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

Merged
merged 6 commits into from
Apr 5, 2022
Merged

Conversation

csviri
Copy link
Collaborator

@csviri csviri commented Apr 4, 2022

No description provided.

@csviri csviri self-assigned this Apr 4, 2022
@csviri csviri marked this pull request as ready for review April 4, 2022 11:14
@csviri csviri requested a review from metacosm April 5, 2022 07:43
@csviri csviri force-pushed the informer-improvements branch from 7679b62 to cc377a8 Compare April 5, 2022 08:17
@@ -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);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why this change?

Copy link
Collaborator Author

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.

Copy link
Collaborator

@metacosm metacosm left a comment

Choose a reason for hiding this comment

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

LGTM

@csviri csviri force-pushed the informer-improvements branch from cc377a8 to 157d335 Compare April 5, 2022 09:14
@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 5, 2022

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 0 Code Smells

29.6% 29.6% Coverage
0.0% 0.0% Duplication

@csviri csviri merged commit e0ac3cd into main Apr 5, 2022
@csviri csviri deleted the informer-improvements branch April 5, 2022 09:29
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.

2 participants