Skip to content
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

MTV-1493 | Add missing resource limits and requests #1268

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

mnecas
Copy link
Member

@mnecas mnecas commented Dec 13, 2024

Issue:
If the user sets ClusterResourceQuota the Forklift will start failing as it does not have the limits or requests on the pods which are created form the Forklift Controller.

Fix:
Add a new parameters to Forklift operator which can be configured depedning on the user env.

Ref: https://issues.redhat.com/browse/MTV-1493

@@ -1738,6 +1748,16 @@ func (r *KubeVirt) guestConversionPod(vm *plan.VMStatus, vmVolumes []cnv.Volume,
MountPath: "/opt",
},
},
Resources: core.ResourceRequirements{
Copy link
Member Author

Choose a reason for hiding this comment

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

Init container only for mount, don't think we need it to be configurable.

@@ -1016,6 +1017,16 @@ func createVddkCheckJob(plan *api.Plan) *batchv1.Job {
Drop: []core.Capability{"ALL"},
},
},
Resources: core.ResourceRequirements{
Copy link
Member Author

Choose a reason for hiding this comment

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

Init container only for mount, don't think we need it to be configurable.

@@ -1057,7 +1068,17 @@ func createVddkCheckJob(plan *api.Plan) *batchv1.Job {
InitContainers: initContainers,
Containers: []core.Container{
{
Name: "validator",
Name: "validator",
Copy link
Member Author

Choose a reason for hiding this comment

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

Validation contianer only for mount, don't think we need it to be configurable.

@mnecas mnecas added this to the 2.7.7 milestone Dec 13, 2024
@mnecas mnecas force-pushed the MTV-1493 branch 5 times, most recently from 5034c23 to e61e86b Compare December 13, 2024 15:51
Issue:
If the user sets ClusterResourceQuota the Forklift will start failing as it
does not have the limits or requests on the pods which are created form
the Forklift Controller.

Fix:
Add a new parameters to Forklift operator which can be configured
depedning on the user env.

Ref: https://issues.redhat.com/browse/MTV-1493
Signed-off-by: Martin Necas <[email protected]>
Copy link

sonarcloud bot commented Dec 13, 2024

@codecov-commenter
Copy link

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

Codecov Report

Attention: Patch coverage is 0% with 61 lines in your changes missing coverage. Please review.

Project coverage is 15.49%. Comparing base (3929eaf) to head (db2d6a5).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/controller/plan/kubevirt.go 0.00% 30 Missing ⚠️
pkg/controller/plan/validation.go 0.00% 21 Missing ⚠️
pkg/controller/plan/hook.go 0.00% 10 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1268      +/-   ##
==========================================
- Coverage   15.53%   15.49%   -0.04%     
==========================================
  Files         112      112              
  Lines       23262    23381     +119     
==========================================
+ Hits         3613     3624      +11     
- Misses      19364    19470     +106     
- Partials      285      287       +2     
Flag Coverage Δ
unittests 15.49% <0.00%> (-0.04%) ⬇️

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.

@mnecas mnecas merged commit 21d0b98 into kubev2v:main Dec 13, 2024
17 of 19 checks passed
@mnecas mnecas mentioned this pull request Dec 13, 2024
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.

2 participants