Repository navigation
executors: set EXECUTOR_DEPLOY_TYPE in both executor components - #522
Draft
marcleblanc2 wants to merge 1 commit into
Draft
marcleblanc2 wants to merge 1 commit into
marcleblanc2 wants to merge 1 commit into
Conversation
The k8s component sets kustomize-k8s and the dind component sets kustomize-dind, so pings report which component deployed the executors. Amp-Thread-ID: https://ampcode.com/threads/T-01a213e9-c2b8-74e8-960c-9756dee340e8 Co-authored-by: Amp <amp@ampcode.com>
This was referenced Nov 25, 2026
executors: set EXECUTOR_DEPLOY_TYPE in both executor charts
sourcegraph/deploy-sourcegraph-helm#1032
Draft
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.
Description
Problem
We can't tell which customers deploy which kind of executor. Pings report only each executor's runtime mode (
docker,firecracker,kubernetes), so the Helm and Kustomize Docker-in-Docker deployments, Docker Compose, and manual Docker installs all reportdocker, and Helm vs Kustomize, Terraform vs manual installs, or Sourcegraph-managed vs customer-managed executors can't be told apart.Solution
Set
EXECUTOR_DEPLOY_TYPEon the executor container in both executor components, next to the existingDEPLOY_TYPE=kustomize, which the executor never reads:components/executors/k8s:kustomize-k8scomponents/executors/dind:kustomize-dindThe executor sends it to its Sourcegraph instance, and pings report it (sourcegraph#19875). Older executors ignore it.
Checklist
CHANGELOG.md)Test plan
kubectl kustomize examples/executors(k8s component) rendersEXECUTOR_DEPLOY_TYPE: kustomize-k8son the executor container.base/sourcegraphpluscomponents/executors/dindrendersEXECUTOR_DEPLOY_TYPE: kustomize-dind.helm-k8sandhelm-dind, and the ping reported them asexecutorDeployType.Linked PRs
Each executor deployment method sets
EXECUTOR_DEPLOY_TYPE, the executor sends it to its Sourcegraph instance, and pings report it. Merge in this order:update_checksschema field; merge and apply to the live table before #19875 mergesEXECUTOR_DEPLOY_TYPE, instance stores it and reports it in pings; product docshelm-k8s,helm-dindkustomize-k8s,kustomize-dinddocker-composeterraform-awsterraform-gcpsourcegraph-cloud, for Sourcegraph Cloud-managed executorsbinary,binary-offlinein the Linux binary install examples; merge after the release that ships #198753 to 8 can merge in any order once #19875 has merged; older executors ignore the variable.
Amp threads
Changelog
Set
EXECUTOR_DEPLOY_TYPEtokustomize-k8sandkustomize-dindin the executor components.