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

Extract ReplicaSet name from pod name #1202

Merged
merged 3 commits into from
Sep 26, 2024
Merged

Conversation

mariomac
Copy link
Contributor

@mariomac mariomac commented Sep 25, 2024

Partially addresses #1198

A ReplicaSet informer should not be actually required, as it is only used to extract the top-level name of a deployment, and this name is actually part of the ReplicaSet name.

This PR only considers the case where the ReplicaSet informer is disabled.

A future PR could disable the ReplicaSet informer by default, or even delete it for code simplification.

@mariomac mariomac added do-not-merge WIP or something that musn't be merged wip labels Sep 25, 2024
@codecov-commenter
Copy link

codecov-commenter commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.81%. Comparing base (f9f1c5e) to head (69dabab).

❗ There is a different number of reports uploaded between BASE (f9f1c5e) and HEAD (69dabab). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (f9f1c5e) HEAD (69dabab)
unittests 1 0
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1202      +/-   ##
==========================================
- Coverage   81.11%   71.81%   -9.31%     
==========================================
  Files         136      135       -1     
  Lines       11501    11497       -4     
==========================================
- Hits         9329     8256    -1073     
- Misses       1640     2580     +940     
- Partials      532      661     +129     
Flag Coverage Δ
integration-test 57.03% <3.70%> (+0.05%) ⬆️
k8s-integration-test 58.82% <100.00%> (-0.07%) ⬇️
oats-test 35.87% <3.70%> (+0.06%) ⬆️
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@rafaelroquetto rafaelroquetto left a comment

Choose a reason for hiding this comment

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

LGTM

@mariomac mariomac changed the title WIP: Extract ReplicaSet name from pod name Extract ReplicaSet name from pod name Sep 26, 2024
@mariomac mariomac removed do-not-merge WIP or something that musn't be merged wip labels Sep 26, 2024
@mariomac mariomac merged commit 9d41b5c into grafana:main Sep 26, 2024
10 checks passed
@mariomac mariomac deleted the extract-rs branch September 26, 2024 12:47
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