-
Notifications
You must be signed in to change notification settings - Fork 222
DNM: chore rebase vk pod power #2138
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
DNM: chore rebase vk pod power #2138
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## reboot #2138 +/- ##
==========================================
- Coverage 91.74% 81.85% -9.89%
==========================================
Files 34 37 +3
Lines 2991 3864 +873
==========================================
+ Hits 2744 3163 +419
- Misses 193 623 +430
- Partials 54 78 +24 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
vimalk78
left a comment
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.
quick comments
internal/k8s/pod/pod.go
Outdated
|
|
||
| func (pi *podInformer) setupManager(scheme *k8sruntime.Scheme) (ctrl.Manager, error) { | ||
| cacheOp := cache.Options{} | ||
| if pi.nodeName != "" { |
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 remove this check? means even for testing we must pass node name.
internal/k8s/pod/pod.go
Outdated
| mgrCtx, cancel := context.WithCancel(context.Background()) | ||
| pi.mgrCtx = mgrCtx | ||
| pi.mgrCancelFunc = cancel | ||
| return pi.manager.Start(mgrCtx) |
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.
there are two ways to gracefully cleanup resources on api server. mgr.Stop() or cancel the context used in mgr.Start
Signed-off-by: Vimal Kumar <[email protected]>
Signed-off-by: Sunil Thaha <[email protected]>
- Refactor pod informer to remove unnecessary controller/reconciler components - Add comprehensive test coverage for pod monitoring lifecycle - Update config schema to support Kubernetes integration Signed-off-by: Sunil Thaha <[email protected]>
Signed-off-by: Sunil Thaha <[email protected]>
Signed-off-by: Sunil Thaha <[email protected]>
65254a5 to
3e69aa7
Compare
No description provided.