Skip to content

Set DEPLOY_TYPE=kustomize - #520

Merged
marcleblanc2 merged 2 commits into
mainfrom
marc/deploy-type-all-containers
Nov 24, 2026
Merged

marcleblanc2 merged 2 commits into
mainfrom
marc/deploy-type-all-containers

Conversation

@marcleblanc2

@marcleblanc2 marcleblanc2 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The update-check job which sends pings was moved to the worker container in v8, but only sourcegraph-frontend and its migrator init container have DEPLOY_TYPE set (from the sourcegraph-frontend-env ConfigMap), so all Kustomize instances have been reporting deployment type kubernetes once they upgrade to v8.

Solution

Borrowing the same from sourcegraph/deploy-sourcegraph-helm#929, this sets DEPLOY_TYPE=kustomize, on the same Sourcegraph containers:

Helm (#929) Kustomize
frontend sourcegraph-frontend container frontend
migrator sourcegraph-frontend init container migrator, and the migrator Job in components/utils/migrator
gitserver gitserver
zoekt-webserver, zoekt-indexserver indexed-search containers zoekt-webserver, zoekt-indexserver
searcher searcher
precise-code-intel-worker precise-code-intel-worker
syntactic-code-intel-worker syntactic-code-intel
syntect-server syntect-server
worker worker
blobstore blobstore
(separate executor chart) executor in components/executors/k8s and components/executors/dind

Same change for Docker Compose: sourcegraph/deploy-sourcegraph-docker#1512


Checklist

Test plan

  • Rendered every example that builds (aws, base, dev, executors, gke, minikube, monitoring, old-cluster, privileged) with kubectl kustomize. In each, exactly the containers in the table above have DEPLOY_TYPE=kustomize.
  • Checked the executors/dind and utils/migrator workloads directly. Same result.
  • kubeconform -strict (Kubernetes 1.33.0, as in .buildkite/verify-yaml.sh) passes on ./base and on the base and executors examples.
  • CI renders the examples and validates ./base.

Only the frontend and its migrator init container got DEPLOY_TYPE, from
the sourcegraph-frontend-env ConfigMap. Since v8.0.0 the worker sends
pings, so Kustomize instances report their deploy type as the
kubernetes fallback.

Like deploy-sourcegraph-helm#929 does for Helm, set it explicitly on
every container and init container in the base workloads and in the
components that define their own workloads.

Amp-Thread-ID: https://ampcode.com/threads/T-01a20e96-2bcd-7332-8f00-abc10c5225ac
Co-authored-by: Amp <amp@ampcode.com>
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Match deploy-sourcegraph-helm#929: set it only on Sourcegraph services,
not on the databases, Redis, monitoring, OpenTelemetry, Jaeger, the
dind sidecar, the private registry, or pod-tmp-gc.

Amp-Thread-ID: https://ampcode.com/threads/T-01a20e96-2bcd-7332-8f00-abc10c5225ac
Co-authored-by: Amp <amp@ampcode.com>
@marcleblanc2 marcleblanc2 changed the title Set DEPLOY_TYPE=kustomize on every container Set DEPLOY_TYPE=kustomize on Sourcegraph containers Nov 24, 2026
@marcleblanc2 marcleblanc2 changed the title Set DEPLOY_TYPE=kustomize on Sourcegraph containers Set DEPLOY_TYPE=kustomize Nov 24, 2026
@marcleblanc2
marcleblanc2 enabled auto-merge (squash) November 24, 2026 22:27
@marcleblanc2
marcleblanc2 requested review from a team and eseliger November 24, 2026 22:28
@marcleblanc2
marcleblanc2 merged commit 72d0e6e into main Nov 24, 2026
7 checks passed
@marcleblanc2
marcleblanc2 deleted the marc/deploy-type-all-containers branch November 24, 2026 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants