Repository navigation
Set DEPLOY_TYPE=kustomize - #520
Merged
Merged
Conversation
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>
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
enabled auto-merge (squash)
November 24, 2026 22:27
michaellzc
approved these changes
Nov 24, 2026
2 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
update-checkjob which sends pings was moved to theworkercontainer in v8, but onlysourcegraph-frontendand itsmigratorinit container haveDEPLOY_TYPEset (from thesourcegraph-frontend-envConfigMap), so all Kustomize instances have been reporting deployment typekubernetesonce they upgrade to v8.Solution
Borrowing the same from sourcegraph/deploy-sourcegraph-helm#929, this sets
DEPLOY_TYPE=kustomize, on the same Sourcegraph containers:sourcegraph-frontendcontainerfrontendsourcegraph-frontendinit containermigrator, and themigratorJob incomponents/utils/migratorgitserverindexed-searchcontainerszoekt-webserver,zoekt-indexserversearcherprecise-code-intel-workersyntactic-code-intelsyntect-serverworkerblobstoreexecutorincomponents/executors/k8sandcomponents/executors/dindSame change for Docker Compose: sourcegraph/deploy-sourcegraph-docker#1512
Checklist
Test plan
aws,base,dev,executors,gke,minikube,monitoring,old-cluster,privileged) withkubectl kustomize. In each, exactly the containers in the table above haveDEPLOY_TYPE=kustomize.executors/dindandutils/migratorworkloads directly. Same result.kubeconform -strict(Kubernetes 1.33.0, as in.buildkite/verify-yaml.sh) passes on./baseand on thebaseandexecutorsexamples../base.