Skip to content

Conversation

@sthaha
Copy link
Collaborator

@sthaha sthaha commented Jun 10, 2025

No description provided.

@github-actions github-actions bot added feat A new feature or enhancement chore Routine tasks or maintenance labels Jun 10, 2025
@codecov
Copy link

codecov bot commented Jun 10, 2025

Codecov Report

Attention: Patch coverage is 48.05492% with 454 lines in your changes missing coverage. Please review.

Project coverage is 81.85%. Comparing base (2d33e25) to head (3e69aa7).
Report is 16 commits behind head on reboot.

Files with missing lines Patch % Lines
internal/k8s/pod/mock_utils.go 16.20% 350 Missing and 12 partials ⚠️
internal/resource/informer.go 28.78% 45 Missing and 2 partials ⚠️
internal/k8s/pod/pod.go 93.46% 7 Missing and 3 partials ⚠️
config/config.go 68.96% 6 Missing and 3 partials ⚠️
internal/resource/types.go 0.00% 9 Missing ⚠️
internal/monitor/pod.go 92.55% 5 Missing and 2 partials ⚠️
internal/monitor/monitor.go 50.00% 4 Missing and 2 partials ⚠️
internal/resource/options.go 0.00% 4 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions bot added the test Adding or updating tests label Jun 10, 2025
Copy link
Collaborator

@vimalk78 vimalk78 left a comment

Choose a reason for hiding this comment

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

quick comments


func (pi *podInformer) setupManager(scheme *k8sruntime.Scheme) (ctrl.Manager, error) {
cacheOp := cache.Options{}
if pi.nodeName != "" {
Copy link
Collaborator

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.

Comment on lines 240 to 243
mgrCtx, cancel := context.WithCancel(context.Background())
pi.mgrCtx = mgrCtx
pi.mgrCancelFunc = cancel
return pi.manager.Start(mgrCtx)
Copy link
Collaborator

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

vimalk78 and others added 5 commits June 10, 2025 03:11
Signed-off-by: Vimal Kumar <[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]>
@sthaha sthaha force-pushed the chore-rebase-vk-pod-power branch from 65254a5 to 3e69aa7 Compare June 10, 2025 07:11
@github-actions github-actions bot removed the feat A new feature or enhancement label Jun 10, 2025
@sthaha sthaha closed this Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Routine tasks or maintenance do-not-merge test Adding or updating tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants