-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(config): throw error if multiple project configs are found
throw error if multiple project configs are found across multiple files in a dir (e.g. in garden.yml and project.garden.yml)
- Loading branch information
1 parent
d097a66
commit 86bb66f
Showing
4 changed files
with
52 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
core/test/data/test-project-multiple-project-configs/garden.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: garden.io/v1 | ||
kind: Project | ||
name: another-test-project | ||
environments: | ||
- name: local | ||
- name: other | ||
providers: | ||
- name: test-plugin | ||
environments: [local] | ||
- name: test-plugin-b | ||
environments: [local] | ||
variables: | ||
some: variable |
13 changes: 13 additions & 0 deletions
13
core/test/data/test-project-multiple-project-configs/project.garden.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: garden.io/v1 | ||
kind: Project | ||
name: test-project | ||
environments: | ||
- name: local | ||
- name: other | ||
providers: | ||
- name: test-plugin | ||
environments: [local] | ||
- name: test-plugin-b | ||
environments: [local] | ||
variables: | ||
some: variable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters