Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions charts/sourcegraph-migrator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ You should consult the list of available [migrator commands]. Below is some exam

### Run database migration

[`migrator up`](https://docs.sourcegraph.com/admin/how-to/manual_database_migrations#up)
[`migrator up`](https://sourcegraph.com/docs/self-hosted/updates/migrator/migrator-operations#up)

- Perform database migrations prior to upgrading the Sourcegraph deployment
- Perform initial migrations against external PostgreSQL databases prior to the Sourcegraph deployment
Expand All @@ -47,7 +47,7 @@ helm upgrade --install -f <your-override-file.yaml> --version <chart-version> sg

### Add a migration log entry

[`migrator add-log -db=frontend -version=1528395834`](https://docs.sourcegraph.com/admin/how-to/manual_database_migrations#add-log)
[`migrator add-log -db=frontend -version=1528395834`](https://sourcegraph.com/docs/self-hosted/updates/migrator/migrator-operations#add-log)

Add an entry to the migration log after a site administrator has explicitly applied the contents of a migration file, learn more about troubleshooting a [dirty database].

Expand Down Expand Up @@ -77,7 +77,7 @@ In addition to the documented values, the `migrator` service also supports the f
| codeInsightsDB.name | string | `"codeinsights-db"` | |
| codeIntelDB.auth.existingSecret | string | `""` | Name of existing secret to use for codeintel-db credentials This should match the setting in the sourcegraph chart values |
| codeIntelDB.name | string | `"codeintel-db"` | |
| migrator.args | list | `["up","-db=all"]` | Override default `migrator` container args Available commands can be found at https://docs.sourcegraph.com/admin/how-to/manual_database_migrations |
| migrator.args | list | `["up","-db=all"]` | Override default `migrator` container args Available commands can be found at https://sourcegraph.com/docs/self-hosted/updates/migrator/migrator-operations |
| migrator.containerSecurityContext | object | `{"allowPrivilegeEscalation":false,"readOnlyRootFilesystem":true,"runAsGroup":101,"runAsUser":100}` | Security context for the `migrator` container, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container) |
| migrator.env | object | `{}` | Environment variables for the `migrator` container |
| migrator.image.defaultTag | string | `<appVersion>@sha256:<digest>`, pinned by each release | Docker image tag for the `migrator` image |
Expand Down Expand Up @@ -116,8 +116,8 @@ kubectl logs -l job=migrator -c migrator
[sourcegraph/sourcegraph]: ../sourcegraph/
[sourcegraph/sourcegraph-migrator]: ./
[dirty database]: https://docs.sourcegraph.com/admin/how-to/dirty_database
[migrator]: https://docs.sourcegraph.com/admin/how-to/manual_database_migrations
[migrator commands]: https://docs.sourcegraph.com/admin/how-to/manual_database_migrations#commands
[migrator]: https://sourcegraph.com/docs/self-hosted/updates/migrator/migrator-operations
[migrator commands]: https://sourcegraph.com/docs/self-hosted/updates/migrator/migrator-operations#commands
[job]: https://kubernetes.io/docs/concepts/workloads/controllers/job/
[add-log]: https://docs.sourcegraph.com/admin/how-to/manual_database_migrations#add-log
[add-log]: https://sourcegraph.com/docs/self-hosted/updates/migrator/migrator-operations#add-log
[using your own postgresql server]: https://docs.sourcegraph.com/admin/external_services/postgres#instructions
10 changes: 5 additions & 5 deletions charts/sourcegraph-migrator/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ You should consult the list of available [migrator commands]. Below is some exam

### Run database migration

[`migrator up`](https://docs.sourcegraph.com/admin/how-to/manual_database_migrations#up)
[`migrator up`](https://sourcegraph.com/docs/self-hosted/updates/migrator/migrator-operations#up)

- Perform database migrations prior to upgrading the Sourcegraph deployment
- Perform initial migrations against external PostgreSQL databases prior to the Sourcegraph deployment
Expand All @@ -47,7 +47,7 @@ helm upgrade --install -f <your-override-file.yaml> --version <chart-version> sg

### Add a migration log entry

[`migrator add-log -db=frontend -version=1528395834`](https://docs.sourcegraph.com/admin/how-to/manual_database_migrations#add-log)
[`migrator add-log -db=frontend -version=1528395834`](https://sourcegraph.com/docs/self-hosted/updates/migrator/migrator-operations#add-log)

Add an entry to the migration log after a site administrator has explicitly applied the contents of a migration file, learn more about troubleshooting a [dirty database].

Expand Down Expand Up @@ -90,8 +90,8 @@ kubectl logs -l job=migrator -c migrator
[sourcegraph/sourcegraph]: ../sourcegraph/
[sourcegraph/sourcegraph-migrator]: ./
[dirty database]: https://docs.sourcegraph.com/admin/how-to/dirty_database
[migrator]: https://docs.sourcegraph.com/admin/how-to/manual_database_migrations
[migrator commands]: https://docs.sourcegraph.com/admin/how-to/manual_database_migrations#commands
[migrator]: https://sourcegraph.com/docs/self-hosted/updates/migrator/migrator-operations
[migrator commands]: https://sourcegraph.com/docs/self-hosted/updates/migrator/migrator-operations#commands
[job]: https://kubernetes.io/docs/concepts/workloads/controllers/job/
[add-log]: https://docs.sourcegraph.com/admin/how-to/manual_database_migrations#add-log
[add-log]: https://sourcegraph.com/docs/self-hosted/updates/migrator/migrator-operations#add-log
[using your own postgresql server]: https://docs.sourcegraph.com/admin/external_services/postgres#instructions
2 changes: 1 addition & 1 deletion charts/sourcegraph-migrator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ migrator:
readOnlyRootFilesystem: true
# -- Override default `migrator` container args
# Available commands can be found at
# https://docs.sourcegraph.com/admin/how-to/manual_database_migrations
# https://sourcegraph.com/docs/self-hosted/updates/migrator/migrator-operations
args:
- up
- -db=all
Loading