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

fix(policies): support for resource requests on side-cars #889

Merged
merged 1 commit into from Jan 16, 2019
Merged

fix(policies): support for resource requests on side-cars #889

merged 1 commit into from Jan 16, 2019

Conversation

kmova
Copy link
Contributor

@kmova kmova commented Jan 16, 2019

Ref: openebs/openebs#2294

With 0.7.0, there was support for configuring resource
limits on the pool and volume pod side-cars using
AuxiliaryResourceLimits. With this PR, added the support
to specify AuxilaryResourceRequests.

This feature is useful in cases where user has to specify
minimum requests like ephemeral storage etc. to avoid
erroneous eviction by K8s as described in the above issue.

Also, some of the resource types are very version dependent
so keeping this as generic and not providing any defaults in
this PR.

In the future, it is possible that OpenEBS Operator could
automatically determine the version and set default values
on the generated default Storage Class.

Signed-off-by: kmova kiran.mova@openebs.io

What this PR does / why we need it:

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer:

Ref: openebs/openebs#2294

With 0.7.0, there was support for configuring resource
limits on the pool and volume pod side-cars using
AuxilaryResourceLimits. With this PR, added the support
to specify AuxilaryResourceRequests.

This feature is useful in cases where user has to specify
minimum requests like ephemeral storage etc. to avoid
erroneous eviction by K8s as described in the above issue.

Also, some of the resource types are very version dependent
so keeping this as generic and not providing any defaults in
this PR.

In the future, it is possible that OpenEBS Operator could
automatically determine the version and set default values
on the generated default Storage Class.

Signed-off-by: kmova <kiran.mova@openebs.io>
@codecov
Copy link

codecov bot commented Jan 16, 2019

Codecov Report

Merging #889 into master will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #889      +/-   ##
==========================================
+ Coverage   42.06%   42.08%   +0.02%     
==========================================
  Files         141      141              
  Lines        9309     9309              
==========================================
+ Hits         3916     3918       +2     
+ Misses       5125     5124       -1     
+ Partials      268      267       -1
Impacted Files Coverage Δ
pkg/install/v1alpha1/cstor_volume.go 0% <ø> (ø) ⬆️
pkg/install/v1alpha1/cstor_pool.go 0% <ø> (ø) ⬆️
pkg/install/v1alpha1/jiva_volume.go 0% <ø> (ø) ⬆️
pkg/task/v1alpha1/store_command.go 83.5% <0%> (+2.06%) ⬆️

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 7de8a7d...a840e3e. Read the comment docs.

Copy link

@AmitKumarDas AmitKumarDas left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

Copy link
Contributor

@prateekpandey14 prateekpandey14 left a comment

Choose a reason for hiding this comment

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

Lgtm

@AmitKumarDas AmitKumarDas merged commit 9f12a28 into openebs-archive:master Jan 16, 2019
vishnuitta pushed a commit that referenced this pull request Jan 25, 2019
Ref: openebs/openebs#2294

With 0.7.0, there was support for configuring resource
limits on the pool and volume pod side-cars using
AuxilaryResourceLimits. With this PR, added the support
to specify AuxilaryResourceRequests.

This feature is useful in cases where user has to specify
minimum requests like ephemeral storage etc. to avoid
erroneous eviction by K8s as described in the above issue.

Also, some of the resource types are very version dependent
so keeping this as generic and not providing any defaults in
this PR.

In the future, it is possible that OpenEBS Operator could
automatically determine the version and set default values
on the generated default Storage Class.

Signed-off-by: kmova <kiran.mova@openebs.io>
(cherry picked from commit 9f12a28)
@kmova kmova deleted the ephi-requests branch June 15, 2019 03:19
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.

None yet

3 participants