Skip to content

Commit

Permalink
Make demo data configurable and add more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
martina-if committed Oct 12, 2020
1 parent 024b8bc commit 4851528
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
18 changes: 18 additions & 0 deletions contrib/chart/backstage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ backstage-ingress * 34.77.171.192 80 17m
## Customization

### Custom PostgreSQL instance

Configuring a connection to an existing PostgreSQL instance is possible through the chart's values.

First create a yaml file with the configuration you want to override, for example `backstage-prod.yaml`:
Expand Down Expand Up @@ -82,6 +84,22 @@ cd contrib/chart/backstage
helm install -f backstage-prod.yaml my-backstage .
```

### Different namespace

To install the charts a specific namespace use `--namespace <ns>`:

```
helm install -f my_values.yaml --namespace demos backstage .
```

### Disable loading of demo data

To deploy backstage with the pre-loaded demo data disable `backend.demoData`:

```
helm install -f my_values.yaml --set backend.demoData=false backstage .
```

## Troubleshooting

#### Unable to verify signature
Expand Down
4 changes: 4 additions & 0 deletions contrib/chart/backstage/files/app-config.local.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ backend:
ca: {{ include "backstage.backend.postgresCaFilename" . | quote }}

catalog:
{{- if .Values.backend.demoData }}
locations:
# Backstage example components
- type: github
Expand All @@ -32,6 +33,9 @@ catalog:
# Backstage example templates
- type: github
target: https://github.com/spotify/backstage/blob/master/plugins/scaffolder-backend/sample-templates/all-templates.yaml
{{- else }}
locations: []
{{- end }}

sentry:
organization: {{ .Values.appConfig.sentry.organization | quote }}
Expand Down
1 change: 1 addition & 0 deletions contrib/chart/backstage/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ frontend:
backend:
enabled: true
nodeEnv: development
demoData: true
replicaCount: 1
image:
repository: martinaif/backstage-k8s-demo-backend
Expand Down

0 comments on commit 4851528

Please sign in to comment.