Skip to content

feat: feat controller queue size, execution thread count #1649

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
Dec 9, 2022

Conversation

csviri
Copy link
Collaborator

@csviri csviri commented Dec 5, 2022

No description provided.

@csviri csviri self-assigned this Dec 5, 2022
@csviri csviri requested a review from metacosm December 5, 2022 14:38
@csviri csviri linked an issue Dec 5, 2022 that may be closed by this pull request
@csviri csviri requested a review from metacosm December 6, 2022 10:43
@@ -118,6 +168,12 @@ public void failedReconciliation(HasMetadata resource, Exception exception,
return registry.gaugeMapSize(PREFIX + name + ".size", Collections.emptyList(), map);
}

private List<Tag> gvkTags(Class<? extends HasMetadata> resourceClass) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

There are several spots where GVK information is added to tags. Could this method be reused elsewhere? Also, it looks like sometimes it's prefixed with resource, sometimes not…

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

gauge is a little different than others, since it is first needs to initialized. Then incremented or decremented. This is specially needed for that. But made it at least public static for now.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also, it looks like sometimes it's prefixed with resource, sometimes not…

what do you mean exactly?

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.

Looks OK apart maybe the GVK tags (see comment).

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 9, 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 16 Code Smells

58.3% 58.3% Coverage
1.7% 1.7% Duplication

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.

Metrics improvements
2 participants