-
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.
refactor: major overhaul to plugin architecture
Plugins are now registered and loaded separately, and are now defined as modules with an exported `gardenPlugin` function. BREAKING CHANGE: This includes some changes to the project schema and how it is resolved, as well as how the main `Garden` class is instantiated. The `Garden` class is now called with an environment name, which is then fixed for the session. The env configuration is resolved by merging the specific environment configuration with a global configuration specified on the new `global` key in the project config. The schema for the `providers` key also different - its keys should now match plugin names, and contain configuration for those plugins.
- Loading branch information
Showing
47 changed files
with
2,087 additions
and
1,786 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
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
project: | ||
name: hello-world | ||
global: | ||
providers: | ||
container: {} | ||
npm-package: {} | ||
variables: | ||
my-variable: hello-variable | ||
environments: | ||
local: | ||
providers: | ||
docker: | ||
type: kubernetes | ||
kubernetes: | ||
context: docker-for-desktop | ||
gcf: | ||
type: local-google-cloud-functions | ||
local-google-cloud-functions: {} | ||
dev: | ||
providers: | ||
docker: | ||
type: google-app-engine | ||
gcf: | ||
type: google-cloud-functions | ||
google-app-engine: {} | ||
google-cloud-functions: | ||
default-project: garden-hello-world | ||
variables: | ||
my-variable: hello-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
Oops, something went wrong.