Skip to content
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

fix: cloudprovider metrics for List() #315

Conversation

jackfrancis
Copy link
Contributor

Fixes #

Description

This PR adds the cloudprovider metrics decorator to the List() method so that all methods of type CloudProvider have metrics foo. Not sure we expect the interface spec of CloudProvider to change, but we include the var _ trick here to remind us if it does, that we want to evolve its metrics package as well.

How was this change tested?

There are no tests for cloudprovider metrics at present. Not manually tested.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jackfrancis jackfrancis requested a review from a team as a code owner May 2, 2023 18:33
@jackfrancis jackfrancis requested a review from engedaam May 2, 2023 18:33
Copy link
Member

@jonathan-innis jonathan-innis left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@coveralls
Copy link

coveralls commented May 2, 2023

Pull Request Test Coverage Report for Build 4864579836

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 81.898%

Totals Coverage Status
Change from base Build 4835315018: 0.0%
Covered Lines: 6818
Relevant Lines: 8325

💛 - Coveralls

@jonathan-innis jonathan-innis merged commit 2d1ebe9 into kubernetes-sigs:main May 2, 2023
@jackfrancis jackfrancis deleted the cloudprovider-metrics-missing-list branch May 2, 2023 21:37
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.

3 participants