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

feat: add resourceVersion for pod, svc and eps #353

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Poor12
Copy link
Collaborator

@Poor12 Poor12 commented Jan 15, 2025

No description provided.

@Poor12 Poor12 force-pushed the add-rv branch 2 times, most recently from 1bf9a43 to f024694 Compare January 15, 2025 08:31
Copy link

codecov bot commented Jan 15, 2025

Codecov Report

Attention: Patch coverage is 2.78450% with 803 lines in your changes missing coverage. Please review.

Project coverage is 30.84%. Comparing base (ba4ca99) to head (3aa1252).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...hpaaggregator/aggregation/forward/endpointSlice.go 0.00% 139 Missing ⚠️
...istry/hpaaggregator/aggregation/forward/service.go 0.00% 139 Missing ⚠️
...ubernetes/pkg/printers/internalversion/printers.go 13.83% 137 Missing ⚠️
...g/util/aggregatedlister/global_resource_version.go 0.00% 86 Missing ⚠️
pkg/util/aggregatedlister/endpointSlice.go 0.00% 82 Missing ⚠️
pkg/util/aggregatedlister/service.go 0.00% 82 Missing ⚠️
pkg/util/aggregatedlister/pod.go 0.00% 51 Missing ⚠️
.../registry/hpaaggregator/aggregation/forward/pod.go 0.00% 42 Missing ⚠️
pkg/registry/hpaaggregator/aggregation/rest.go 0.00% 22 Missing ⚠️
pkg/registry/hpaaggregator/metrics/resource/pod.go 0.00% 19 Missing ⚠️
... and 1 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #353      +/-   ##
==========================================
- Coverage   33.60%   30.84%   -2.77%     
==========================================
  Files         157      162       +5     
  Lines       18085    18823     +738     
==========================================
- Hits         6078     5806     -272     
- Misses      11485    12511    +1026     
+ Partials      522      506      -16     
Flag Coverage Δ
unittests 30.84% <2.78%> (-2.77%) ⬇️

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.

@Poor12 Poor12 force-pushed the add-rv branch 2 times, most recently from f4467d7 to 8823595 Compare January 15, 2025 09:38
@@ -114,14 +116,24 @@ func (m *PodMetrics) pods(ctx context.Context, options *metainternalversion.List
}

namespace := genericapirequest.NamespaceValue(ctx)
pods, err := m.podLister.ByNamespace(namespace).List(labelSelector)
podsObj, err := m.podLister.ByNamespace(namespace).List(ctx, metav1.ListOptions{
LabelSelector: labelSelector.String(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks like we can add resourceVersion and filedSelector here.

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.

2 participants