* Change production example to be an integration test The documentation is a better example then the test now. Separate the two. Signed-off-by: Kevin Fox <[email protected]> * Fix job name reference Signed-off-by: Kevin Fox <[email protected]> * Fix job name reference Signed-off-by: Kevin Fox <[email protected]> * Update postgresql example Signed-off-by: Kevin Fox <[email protected]> * Update mysql example Signed-off-by: Kevin Fox <[email protected]> * Update nested and mysql Signed-off-by: Kevin Fox <[email protected]> * Fix typo Signed-off-by: Kevin Fox <[email protected]> * Add support for integration tests in the tests/integration dir Signed-off-by: Kevin Fox <[email protected]> * Fix split issue and typo Signed-off-by: Kevin Fox <[email protected]> * Fix split issue Signed-off-by: Kevin Fox <[email protected]> * Try folding example your values into bash so that its not laying around in an fs for a user to accidently use. Signed-off-by: Kevin Fox <[email protected]> * Fix test Signed-off-by: Kevin Fox <[email protected]> * Fix test Signed-off-by: Kevin Fox <[email protected]> * Fix test Signed-off-by: Kevin Fox <[email protected]> * Fix test Signed-off-by: Kevin Fox <[email protected]> * Fix test Signed-off-by: Kevin Fox <[email protected]> * Fix test Signed-off-by: Kevin Fox <[email protected]> * Cleanup Signed-off-by: Kevin Fox <[email protected]> --------- Signed-off-by: Kevin Fox <[email protected]> Signed-off-by: kfox1111 <[email protected]> Co-authored-by: Faisal Memon <[email protected]>
21 lines
874 B
Markdown
21 lines
874 B
Markdown
# Example external mysql
|
|
|
|
We recommend you put your config into git, but never put a password directly into git. Generally the easiest way to do so is via
|
|
environment variable. Your CI/CD system of choice usually allows you to set those. Please refer to your systems documentation for
|
|
guidance.
|
|
|
|
If manually deploying for testing, you can safely put the password into an environment variable by running:
|
|
|
|
```bash
|
|
source ../bin/readpw.sh
|
|
```
|
|
|
|
Follow the instructions as described at https://artifacthub.io/packages/helm/spiffe/spire, and copy in the settings from
|
|
examples/external-mysql/values.yaml into your values file.
|
|
|
|
You can add the password at install runtime like so:
|
|
|
|
```shell
|
|
helm upgrade --install --namespace spire-mgmt spire spire -f your-values.yaml --set "spire-server.dataStore.sql.password=${DBPW}" --repo https://spiffe.github.io/helm-charts-hardened/
|
|
```
|