Skip to content

feat: add metadata support for Metrics #1323

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
Jul 13, 2022
Merged

feat: add metadata support for Metrics #1323

merged 6 commits into from
Jul 13, 2022

Conversation

metacosm
Copy link
Collaborator

@metacosm metacosm commented Jul 8, 2022

Right now, the only metadata that's provided is the group/version/kind
information associated with the resource being processed.

Fixes #1322 #1324.

Builds on top of #1319.

@@ -22,4 +25,21 @@ default <T> Optional<T> getSecondaryResource(Class<T> expectedType) {
ControllerConfiguration<P> getControllerConfiguration();

ManagedDependentResourceContext managedDependentResourceContext();

ResourceID currentlyReconciledResourceID();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are we exposing this to the user? This is not usable at all for him. Could be very confusing? Is this this for metrics?


ResourceID currentlyReconciledResourceID();

Map<String, Object> metadata();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here why is this in the context and not hidden from the user?

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

65.9% 65.9% Coverage
0.3% 0.3% Duplication

@metacosm metacosm merged commit 4018456 into next Jul 13, 2022
@metacosm metacosm deleted the fix-1322 branch July 13, 2022 11:40
csviri added a commit that referenced this pull request Jul 13, 2022
Right now, the only metadata that's provided is the group/version/kind
information associated with the resource being processed.

Fixes #1322.
Fixes #1324.

Co-authored-by: csviri <[email protected]>
csviri added a commit that referenced this pull request Jul 13, 2022
Right now, the only metadata that's provided is the group/version/kind
information associated with the resource being processed.

Fixes #1322.
Fixes #1324.

Co-authored-by: csviri <[email protected]>
csviri added a commit that referenced this pull request Jul 14, 2022
Right now, the only metadata that's provided is the group/version/kind
information associated with the resource being processed.

Fixes #1322.
Fixes #1324.

Co-authored-by: csviri <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants