-
Notifications
You must be signed in to change notification settings - Fork 109
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(metaserver): support get pod by uid #39
Conversation
805c618
to
cb98978
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #39 +/- ##
==========================================
- Coverage 50.99% 50.88% -0.11%
==========================================
Files 311 315 +4
Lines 31796 32126 +330
==========================================
+ Hits 16215 16348 +133
- Misses 13666 13844 +178
- Partials 1915 1934 +19
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
517b930
to
546a5f8
Compare
pod-fetcher interface is kind of mess and should be refined before it can be approved cc @luomingmeng |
546a5f8
to
c4478b9
Compare
c4478b9
to
b30df61
Compare
pkg/metaserver/agent/pod/kubelet.go
Outdated
// GetPodList get pods from kubelet 10255/pods api, and the returned slice does not | ||
// contain pods that don't pass `podFilter` | ||
func (k *kubeletPodFetcherImpl) GetPodList(_ context.Context, podFilter func(*v1.Pod) bool) ([]*v1.Pod, error) { | ||
func getPodsByKubeletAPI() (v1.PodList, error) { |
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.
why we need to extract this function out? @cheney-lin
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.
No need any more, removed already.
Signed-off-by: linzhecheng <linzhecheng@bytedance.com>
b30df61
to
6113f3d
Compare
What type of PR is this?
Enhancements
What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for your reviewer: