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

Allow the size of a component's volume to be specified in a Devfile #14

Closed
johnmcollier opened this issue Feb 5, 2020 · 3 comments · Fixed by #35
Closed

Allow the size of a component's volume to be specified in a Devfile #14

johnmcollier opened this issue Feb 5, 2020 · 3 comments · Fixed by #35
Milestone

Comments

@johnmcollier
Copy link
Member

johnmcollier commented Feb 5, 2020

Right now, there isn’t a way to specify the size of a component’s volume in a devfile, and Che will use the size specified in che.properties (default 1Gi). As different component-types may have different volume requirements (e.g. the issue seen in redhat-developer/odo#2455), Odo will have a need to specify the size of volumes it interacts with, and rather than having an odo-specific setting, it would be nice if we could store this setting in the devfile,

This change might also be nice for Che, as it would allow components to configure the size of volumes they need (such as a maven cache volume that requires more than 1Gi), rather than relying on global Che defaults.

Something like:

---
components:
  - container:
      image: "maven"
      name: "maven"
      volumesMount: 
      - name: my-data-volume
  - volume:
     name: my-data-volume
     size: 5Gi
@l0rd l0rd mentioned this issue Feb 5, 2020
28 tasks
@l0rd
Copy link
Contributor

l0rd commented Feb 18, 2020

Proposal reviewed and approved.

@l0rd
Copy link
Contributor

l0rd commented Apr 7, 2020

Updated the sample based on the new volume spec #19

davidfestal added a commit that referenced this issue Apr 10, 2020
Signed-off-by: David Festal <dfestal@redhat.com>
davidfestal added a commit that referenced this issue Apr 22, 2020
* Implement agreement on issue #18
* Implement agreement on issue #17
* Implement agreement on issue #21
* Implement agreement on issue #22
* Implement agreement on issue #27
* Implement agreement on issue #9
* Implement agreement on issue #10
* Fix PR comments about issue #9 PR comment #35 (comment)
* Fix PR comments about issue #17 PR comment #35 (comment)
* Implement agreement on issue #14 and  #19
* Add the spring boot example
* Implement agreement on issue #32
* Fix last PR comments

Signed-off-by: David Festal <dfestal@redhat.com>

Co-Authored-By: Sergii Leshchenko <sleshche@redhat.com>
@l0rd l0rd added this to the 2.0.0 milestone Jun 16, 2020
@davidfestal davidfestal linked a pull request Jun 23, 2020 that will close this issue
@davidfestal
Copy link
Collaborator

Implemented

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 a pull request may close this issue.

3 participants