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

Remove ReplicaSet informer #1204

Merged
merged 7 commits into from
Sep 30, 2024
Merged

Remove ReplicaSet informer #1204

merged 7 commits into from
Sep 30, 2024

Conversation

mariomac
Copy link
Contributor

Continuation of #1202, closes first item of #1198

The ReplicaSet informer was only needed to get the name of the owning Deployment. As long as that deployment name is already part of the ReplicaSet informer, we don't actually need to make use of the Kube API for that.

This PR removes all the code related to ReplicaSet informers.

@codecov-commenter
Copy link

codecov-commenter commented Sep 26, 2024

Codecov Report

Attention: Patch coverage is 92.59259% with 2 lines in your changes missing coverage. Please review.

Project coverage is 82.06%. Comparing base (0130316) to head (ed83c08).

Files with missing lines Patch % Lines
pkg/internal/kube/owner.go 81.81% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1204      +/-   ##
==========================================
+ Coverage   73.29%   82.06%   +8.77%     
==========================================
  Files         135      136       +1     
  Lines       11549    11420     -129     
==========================================
+ Hits         8465     9372     +907     
+ Misses       2427     1514     -913     
+ Partials      657      534     -123     
Flag Coverage Δ
integration-test 60.78% <14.81%> (+1.08%) ⬆️
k8s-integration-test 58.83% <92.59%> (-0.12%) ⬇️
oats-test 36.07% <14.81%> (+0.41%) ⬆️
unittests 53.05% <74.07%> (?)

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

@grcevski grcevski left a comment

Choose a reason for hiding this comment

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

LGTM! Small remark about a bug in the docs.

@@ -662,6 +662,25 @@ establish communication with the Kubernetes Cluster.

Usually you won't need to change this value.

| YAML | Environment variable | Type | Default |
|---------------------|--------------------------------|--------|------------------|
| `disable_informers` | `BEYLA_KUBE_DISABLE_INFORMERS` | string | `~/.kube/config` |
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the default here is a copy paste mistake, probably should be empty

@mariomac mariomac merged commit 5006cbd into grafana:main Sep 30, 2024
12 checks passed
@mariomac mariomac deleted the rm-rs-informer branch September 30, 2024 09:28
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