Skip to content

MTV-4826 | Fix NetApp Shift NPE with Storage Offload validation#5621

Merged
mnecas merged 1 commit intokubev2v:mainfrom
mnecas:MTV-4826
Mar 25, 2026
Merged

MTV-4826 | Fix NetApp Shift NPE with Storage Offload validation#5621
mnecas merged 1 commit intokubev2v:mainfrom
mnecas:MTV-4826

Conversation

@mnecas
Copy link
Copy Markdown
Member

@mnecas mnecas commented Mar 25, 2026

Resolves: MTV-4826

Issue:
Becuase in MTV 2.11.0 the storage offload is enabled by default, we perform validation to check if offload is enabled on all plans. However this validation had NPE if the storage map is not definied.

Fix:
Add validation to check for nil map.

Resolves: MTV-4826

Issue:
Becuase in MTV 2.11.0 the storage offload is enabled by default, we
perform validation to check if offload is enabled on all plans. However
this validation had NPE if the storage map is not definied.

Fix:
Add validation to check for nil map.

Signed-off-by: Martin Necas <mnecas@redhat.com>
@sonarqubecloud
Copy link
Copy Markdown

@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 10.10%. Comparing base (f1fe5d0) to head (a1f025d).
⚠️ Report is 2048 commits behind head on main.

Files with missing lines Patch % Lines
pkg/apis/forklift/v1beta1/plan.go 0.00% 2 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5621      +/-   ##
==========================================
- Coverage   15.45%   10.10%   -5.35%     
==========================================
  Files         112      500     +388     
  Lines       23377    57431   +34054     
==========================================
+ Hits         3613     5804    +2191     
- Misses      19479    51146   +31667     
- Partials      285      481     +196     
Flag Coverage Δ
unittests 10.10% <0.00%> (-5.35%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@mnecas mnecas added the backport-release-2.11 This label will trigger a backport to 2.11 once the PR is merged label Mar 25, 2026
@mnecas mnecas merged commit 992da0f into kubev2v:main Mar 25, 2026
14 checks passed
@mnecas
Copy link
Copy Markdown
Member Author

mnecas commented Mar 25, 2026

/backport release-2.11

@github-actions
Copy link
Copy Markdown

🔄 Starting backport of PR #5621 to release-2.11
🚀 Live mode
View run

@github-actions
Copy link
Copy Markdown

✅ PR #5621 backported to release-2.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-release-2.11 This label will trigger a backport to 2.11 once the PR is merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants