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

Add Prometheus controller name validation #80

Merged
merged 8 commits into from
Aug 15, 2023
Merged

Conversation

Marcus-Hines
Copy link
Contributor

@Marcus-Hines Marcus-Hines commented Aug 14, 2023

…in line with prometheus best practices

Description

Match prometheus controller labels to controller name - Adding the function to check for snakeCase and its unit test first. Next step is documenting that the controller name needs to be snake case, and updating the the loggers to use the correct controller name / label

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)
Feature # (details)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration. Is it a breaking change which will impact consuming tool(s)?

  • Test to endure that obvious incorrect snake case fails and that the inverse results in true

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@coveralls
Copy link
Collaborator

coveralls commented Aug 14, 2023

Pull Request Test Coverage Report for Build 5870825211

  • 6 of 6 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.4%) to 86.057%

Totals Coverage Status
Change from base Build 5868959243: -1.4%
Covered Lines: 1796
Relevant Lines: 2087

💛 - Coveralls

@OliverMKing
Copy link
Collaborator

/ok-to-test sha=2842e2b

@OliverMKing
Copy link
Collaborator

/ok-to-test sha=e22bbc0

@OliverMKing OliverMKing changed the title Match prometheus controller labels to controller name Add Prometheus controller name validation Aug 15, 2023
@OliverMKing OliverMKing merged commit 90047b3 into Azure:main Aug 15, 2023
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.

6 participants