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

Add ability to create application resource/template from stack #2582

Closed
4 tasks
johnmcollier opened this issue Feb 7, 2020 · 5 comments
Closed
4 tasks

Add ability to create application resource/template from stack #2582

johnmcollier opened this issue Feb 7, 2020 · 5 comments
Assignees
Labels
area/devfile-spec Issues or PRs related to the Devfile specification and how odo handles and interprets it. kind/user-story An issue of user-story kind triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@johnmcollier
Copy link
Member

johnmcollier commented Feb 7, 2020

User Story

As a user, I want to be able to use odo to point to a devfile/stack that has its own application template associated with it, and have the template generated on my disk. This will be similar to the appsody init command that we're trying to replicate in odo.

Acceptance Criteria

  • It should clone/download project/application resources on my disk from a template associated with a stack/devfile
    • If sparseCheckoutDir is set, need to pull down the specified folder from the git repo, rather than the entire repo
  • resource creation will only be triggered when:
  1. experimental flag has been enabled

  2. the component is a devfile component

  3. there is a project defined in the devfile of the given component

  4. odo component create command called with a --downloadSource flag

  • if a devfile contains a command called devInit, the devInit command will be executed at the end of the odo component create to do any init setup that the stack needs
  • the devInit command should function similarly (if not equivalently) to the appsody init command

Links

CC @neeraj-laad

/kind user-story
/area devfile

@openshift-ci-robot openshift-ci-robot added kind/user-story An issue of user-story kind area/devfile-spec Issues or PRs related to the Devfile specification and how odo handles and interprets it. labels Feb 7, 2020
@elsony
Copy link

elsony commented Mar 3, 2020

Added more details on the requirement on the description

@girishramnani girishramnani added the triage/needs-information Indicates an issue needs more information in order to work on it. label Mar 12, 2020
@elsony
Copy link

elsony commented Mar 13, 2020

Based on the Sprint plan discussion, we need to figure out a better name than --createResource to clarify that the creation/cloning of resource is on the local file system instead of creating Kube resources.

@EnriqueL8
Copy link
Contributor

@upLukeWeston and I added some notes on this issue here
FYI: @johnmcollier @elsony

@GeekArthur
Copy link
Contributor

FYI, this issue #2850 description includes the rough design for template support, we can discuss and finalize the design later then just use one issue for tracking purpose.

@elsony
Copy link

elsony commented May 13, 2020

This item is done with the remaining issues have separate items opened

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devfile-spec Issues or PRs related to the Devfile specification and how odo handles and interprets it. kind/user-story An issue of user-story kind triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

6 participants