-
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.
feat(core): providers can depend on and reference configs from each o…
…ther This adds some important features and improved testing for our provider mechanism. We can use this to explicitly declare dependencies between providers, to reference each others' configs and outputs, as well as a solid way for providers to bundle modules (i.e. without having to use nested Garden instances). To start, I've updated our OpenFaaS provider to use these features, resulting in a simpler, more elegant implementation. These changes will further enable more types of providers, including a Terraform provider that I've started implementing, where we'll be able to reference stack outputs to configure other providers, e.g. to connect to a Kubernetes cluster provisioned by Terraform. Another improvement is in how we declare providers in project configs, and how they are mapped to environments. Instead of declaring them under each environment, we can declare a provider once for all or selected environments, essentially inverting the spec. This feels more elegant to me. This is currently backwards compatible btw, so we can gradually transition examples and docs after releasing 0.10. BREAKING CHANGE: When using OpenFaaS with `local-kubernetes` you now need to use the `local-openfaas` provider, instead of `openfaas`. You also need to manually delete any existing `<my namespace>--openfaas` namespaces from your cluster after upgrading.
- Loading branch information
Showing
105 changed files
with
4,298 additions
and
1,548 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
Oops, something went wrong.