-
Notifications
You must be signed in to change notification settings - Fork 100
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
base: main
Are you sure you want to change the base?
Conversation
1bf9a43
to
f024694
Compare
Codecov ReportAttention: Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
f4467d7
to
8823595
Compare
@@ -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(), |
There was a problem hiding this comment.
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.
No description provided.