From d2a9fb1ad869b9c11d6d4331ee3c8c1c1e1710ec Mon Sep 17 00:00:00 2001 From: Taras Yemets Date: Tue, 17 Nov 2026 15:54:22 +0000 Subject: [PATCH] chore/docs: Repair migrator documentation links The migrator chart links to a removed manual-migrations page. Point the template and values comments to the migrator operations reference, then regenerate the README. Chart values and runtime behavior are unchanged. --- charts/sourcegraph-migrator/README.md | 12 ++++++------ charts/sourcegraph-migrator/README.md.gotmpl | 10 +++++----- charts/sourcegraph-migrator/values.yaml | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/charts/sourcegraph-migrator/README.md b/charts/sourcegraph-migrator/README.md index eba7f0ecd..97117df55 100644 --- a/charts/sourcegraph-migrator/README.md +++ b/charts/sourcegraph-migrator/README.md @@ -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 @@ -47,7 +47,7 @@ helm upgrade --install -f --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]. @@ -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 | `@sha256:`, pinned by each release | Docker image tag for the `migrator` image | @@ -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 diff --git a/charts/sourcegraph-migrator/README.md.gotmpl b/charts/sourcegraph-migrator/README.md.gotmpl index ee46175c0..c669bbc1e 100644 --- a/charts/sourcegraph-migrator/README.md.gotmpl +++ b/charts/sourcegraph-migrator/README.md.gotmpl @@ -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 @@ -47,7 +47,7 @@ helm upgrade --install -f --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]. @@ -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 diff --git a/charts/sourcegraph-migrator/values.yaml b/charts/sourcegraph-migrator/values.yaml index 0274af9b3..fe1ede6a7 100644 --- a/charts/sourcegraph-migrator/values.yaml +++ b/charts/sourcegraph-migrator/values.yaml @@ -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