Resolve "Document product integration for creating flux, secrets, namespaces, and values resources"
Compare changes
- Michael McLeroy authored
@@ -4,8 +4,354 @@ Big Bang uses a continuous deployment tool, [Flux](https://fluxcd.io/) to deploy
The purpose of the Flux Helm chart is to create a Big Bang compatible, easy-to-use spec for deploying the package. Reasonable and safe defaults are provided and any needed secrets are auto-created. We accept the trade-off of easy deployment for complicated template code. Details are in the following steps.
Flux's source controller uses the [GitRepository](https://fluxcd.io/docs/components/source/gitrepositories/) resource to pull Helm chart changes from Git. Use the [GitRepository API Specification](https://fluxcd.io/docs/components/source/gitrepositories/#specification) to create a `GitRepository` resource named `flux/templates/$PKGNAME/gitrepository.yaml` with the following content:
Big Bang has a few options for overwriting values in packages. The package's `HelmRelease`, that we created earlier, contains a `ValuesFrom` section that references a secret with `common`, `default`, and `overlay` keys. Each of these keys can contain a set of override values that get passed down to the package. Here is a table explaining the difference between the possible overlays: