-
Notifications
You must be signed in to change notification settings - Fork 267
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
Merge garden-project.yml
and garden.yml
into one format?
#55
Comments
Another example, where you have a single-module project: project:
name: hello-world
environments:
local:
providers:
docker:
type: kubernetes
context: docker-for-desktop
variables:
my-variable: hello-variable
module:
description: Hello world container service
type: container
services:
hello-container:
command: [npm, start]
endpoints:
- paths: [/hello]
containerPort: 8080
healthCheck:
httpGet:
path: /_ah/health
port: 8080
test:
unit:
command: [npm, test] |
+1. I think a I can't think of any good reason for maintaining the |
Agree. Would it make sense, for those inclined to do so, to allow specifying everything in the top level Something like: project:
name: hello-world
environments: ...
modules:
- name: module-a
dir: /path/to/module-a
description: Module A description
type: container
- name: module-b
dir: /path/to/module-b
description: Module B description
type: container |
That'd be a fairly simple addition. I just wonder if we should be allowing multiple ways to declare stuff... I can see the merit though, if people generally prefer a single file to declare stuff. |
Done in #57 |
It bothers me a little that we have one type of file called
garden-project.yml
and thengarden.yml
files in module directories. Both the aesthetics of it, and for a practical reason, which is that a project will be able to reference other repos. So when you’re in a repository that contains a single module, there is nogarden-project.yml
and we’ll have a weird usability issue (what happens when you rungarden
in a module repo root?).My proposal is this: We merge the two spec files into one
garden.yml
, and add top levelproject
andmodule
keys (and possibly a pluralmodules
orexternal-modules
key, to facilitate adding multiple references to other repos).Example
Project root:
Module:
I feel like this'd feel a bit cleaner, plus it opens up a bit of flexibility in our configuration down the road imo. Thoughts?
The text was updated successfully, but these errors were encountered: