Skip to content

Conversation

@akhilerm
Copy link
Contributor

Signed-off-by: Akhil Mohan akhil.mohan@mayadata.io

What this PR does?:
use empty object instead of deepcopy object in Get() call. This
is done so that empty fields returned from API server are not filled
in from the deepcopy object

Does this PR require any upgrade changes?:
No

If the changes in this PR are manually verified, list down the scenarios covered::

Any additional information for your reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs

Checklist:

  • Fixes #
  • PR Title follows the convention of <type>(<scope>): <subject>
  • Has the change log section been updated?
  • Commit has unit tests
  • Commit has integration tests
  • (Optional) Are upgrade changes included in this PR? If not, mention the issue/PR to track:
  • (Optional) If documentation changes are required, which issue on https://github.com/openebs/openebs-docs is used to track them:

@RealHarshThakur
Copy link
Contributor

Unit tests are failing due to this?

@codecov-commenter
Copy link

codecov-commenter commented Sep 21, 2021

Codecov Report

Merging #648 (5d4f3fa) into develop (9ad0e09) will decrease coverage by 0.28%.
The diff coverage is 44.44%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #648      +/-   ##
===========================================
- Coverage    45.10%   44.82%   -0.29%     
===========================================
  Files           79       79              
  Lines         3964     3969       +5     
===========================================
- Hits          1788     1779       -9     
- Misses        2011     2022      +11     
- Partials       165      168       +3     
Impacted Files Coverage Δ
pkg/epoll/epoll.go 60.24% <0.00%> (-2.26%) ⬇️
cmd/ndm_daemonset/controller/blockdevicestore.go 70.46% <66.66%> (-0.96%) ⬇️
cmd/ndm_daemonset/probe/udevprobe.go 46.64% <0.00%> (-2.38%) ⬇️
cmd/ndm_daemonset/probe/addhandler.go 67.97% <0.00%> (-0.99%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9ad0e09...5d4f3fa. Read the comment docs.

@akhilerm
Copy link
Contributor Author

Fixed the unit tests @RealHarshThakur

@akhilerm akhilerm force-pushed the fix-get-call branch 2 times, most recently from 9febf18 to 25119d5 Compare September 23, 2021 12:06
use empty object instead of deepcopy object in Get() call. This
is done so that empty fields returned from API server are not filled
in from the deepcopy object

Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
Use logging level 4
Signed-off-by: Aditya Jain <aditya.jainadityajain.jain@gmail.com>
@z0marlin z0marlin merged commit 498c632 into openebs-archive:develop Dec 6, 2021
@akhilerm akhilerm deleted the fix-get-call branch December 6, 2021 16:08
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.

4 participants