From 22df97cab56bc48e465a9b0f5b7a0d4f120261d3 Mon Sep 17 00:00:00 2001 From: Erik Seliger Date: Fri, 20 Nov 2026 12:54:39 +0000 Subject: [PATCH] Add opt-in indexed search continuity indexedSearch.continuity.enabled replaces the zoekt-webserver and zoekt-indexserver containers with one continuity webserver per indexed-search pod, adds an indexer Deployment that publishes shards through object storage, and passes the continuity settings to frontend, worker, searcher, and gitserver. Off by default; disabled renders are unchanged. Amp-Thread-ID: https://ampcode.com/threads/T-597f342f-9754-47be-8f3e-3c5ffc344e41 --- charts/sourcegraph/CHANGELOG.md | 1 + charts/sourcegraph/README.md | 23 +++ .../_helpers/_indexedSearchContinuity.tpl | 58 ++++++ charts/sourcegraph/templates/_worker.tpl | 1 + .../sourcegraph-frontend.Deployment.yaml | 1 + .../gitserver/gitserver.StatefulSet.yaml | 1 + .../indexed-search-indexer.Deployment.yaml | 114 +++++++++++ .../indexed-search-indexer.Service.yaml | 24 +++ .../indexed-search.IndexerService.yaml | 2 + .../indexed-search.Service.yaml | 5 + .../indexed-search.StatefulSet.yaml | 82 ++++++++ .../searcher/searcher.StatefulSet.yaml | 1 + .../tests/indexedSearchContinuity_test.yaml | 180 ++++++++++++++++++ charts/sourcegraph/values.yaml | 64 +++++++ 14 files changed, 557 insertions(+) create mode 100644 charts/sourcegraph/templates/_helpers/_indexedSearchContinuity.tpl create mode 100644 charts/sourcegraph/templates/indexed-search/indexed-search-indexer.Deployment.yaml create mode 100644 charts/sourcegraph/templates/indexed-search/indexed-search-indexer.Service.yaml create mode 100644 charts/sourcegraph/tests/indexedSearchContinuity_test.yaml diff --git a/charts/sourcegraph/CHANGELOG.md b/charts/sourcegraph/CHANGELOG.md index a8b444320..0900e14c3 100644 --- a/charts/sourcegraph/CHANGELOG.md +++ b/charts/sourcegraph/CHANGELOG.md @@ -8,6 +8,7 @@ Use `**BREAKING**:` to denote a breaking change ## Unreleased +- Added opt-in indexed search continuity behind `indexedSearch.continuity.enabled` (default `false`, which renders the same manifests as before). When enabled, the `indexed-search` StatefulSet runs one `zoekt-continuity-webserver` container per pod instead of `zoekt-webserver` and `zoekt-indexserver`, a new `indexed-search-indexer` Deployment builds shards and publishes them through object storage, and frontend, worker, searcher, and gitserver get the `SRC_INDEXED_SEARCH_CONTINUITY_*` settings. Prometheus scrapes the webservers and indexers on port `6060`. Set `indexedSearch.continuity.replicas`, `activationTolerance`, and `replicationFactors` to control how many webservers hold each repository, and `indexedSearch.continuity.indexer.env` for indexer settings such as `SRC_INDEXED_SEARCH_CONTINUITY_DELTA_REPOS`. Experimental: requires Sourcegraph images that include continuity. - The `correct-data-dir-permissions` init containers of `pgsql`, `codeintel-db`, and `codeinsights-db` now run the database's own image instead of `sourcegraph/alpine-3.14`, which was based on an end-of-life Alpine release. The chart no longer pulls `alpine-3.14`, so private registries no longer need to mirror it. `alpine.image` has been removed and is ignored if set; `alpine.containerSecurityContext`, `alpine.resources`, and `codeInsightsDB.init.containerSecurityContext` still apply. - Added `sourcegraph.selectorLabelsOverride`, `.extraSelectorLabels`, and `storageLabels` on `gitserver`, `grafana`, `indexedSearch`, and `searcher`, so the chart can render the selectors and volume claim templates of workloads created outside it, such as with Kustomize, and a Helm release can take them over without deleting them. All default to empty, so existing releases render the same selectors. Never change them on an installed release: Kubernetes does not allow changing these fields. See [Adopting existing workloads](README.md#adopting-existing-workloads). - Fixed `frontend.command` and `migrator.command` rendering a list as a single element, e.g. `["sh", "-c", "