Skip to content

Commit

Permalink
Single directory, single component
Browse files Browse the repository at this point in the history
  • Loading branch information
dharmit committed Aug 11, 2021
1 parent dfa314d commit 6a4e77e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions website/docs/using-odo/create-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ In simplest terms, when you "create" an odo component, you populate your current

However, odo users are not expected to know how the `devfile.yaml` is organized; it is the odo commands that would create, update, or delete it.

One final thing to keep in mind - there can be only one odo component in a directory. Nesting odo components is not expected to work well. In other terms, if you have multiple parts (components), say frontend and backend, of your microservices application that you want to create odo components for, you should put them in separate directories and not try to nest them. Take a look at example structure below:

This comment has been minimized.

Copy link
@valaparthvi

valaparthvi Aug 11, 2021

Contributor

Nesting odo components is not expected to work well.

When you say this, it gives an impression that managing nested components is possible with odo, which is not the possible, is it? If it is not possible, then it might make sense to rephrase this sentence to somethink like "odo does not provide the feature to manage nested components." or, something on a more positive note.

```shell
$ tree my-awesome-microservices-app
my-awesome-microservices-app
├── backend
│ └── devfile.yaml
└── frontend
└── devfile.yaml
```
In this guide, we are going to create a Spring Boot component to deploy the [Spring Boot petclinic](https://github.com/spring-projects/spring-petclinic) project to a Kubernetes cluster.

Let's clone the project first:
Expand Down

0 comments on commit 6a4e77e

Please sign in to comment.