Skip to content

executors: set EXECUTOR_DEPLOY_TYPE in both executor components - #522

Draft
marcleblanc2 wants to merge 1 commit into
mainfrom
marc/executor-deploy-type
Draft

marcleblanc2 wants to merge 1 commit into
mainfrom
marc/executor-deploy-type

Conversation

@marcleblanc2

@marcleblanc2 marcleblanc2 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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 report docker, and Helm vs Kustomize, Terraform vs manual installs, or Sourcegraph-managed vs customer-managed executors can't be told apart.

Solution

Set EXECUTOR_DEPLOY_TYPE on the executor container in both executor components, next to the existing DEPLOY_TYPE=kustomize, which the executor never reads:

  • components/executors/k8s: kustomize-k8s
  • components/executors/dind: kustomize-dind

The executor sends it to its Sourcegraph instance, and pings report it (sourcegraph#19875). Older executors ignore it.


Checklist

Test plan

  • kubectl kustomize examples/executors (k8s component) renders EXECUTOR_DEPLOY_TYPE: kustomize-k8s on the executor container.
  • A scratch kustomization of base/sourcegraph plus components/executors/dind renders EXECUTOR_DEPLOY_TYPE: kustomize-dind.
  • Not run: deploying these components to a cluster. The same variable, set the same way by the Helm charts (deploy-sourcegraph-helm#1032), was tested end to end on m5 (EKS): executors from sourcegraph#19875 stored helm-k8s and helm-dind, and the ping reported them as executorDeployType.

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:

  1. sourcegraph/analytics#1181: BigQuery update_checks schema field; merge and apply to the live table before #19875 merges
  2. sourcegraph/sourcegraph#19875: executor reads EXECUTOR_DEPLOY_TYPE, instance stores it and reports it in pings; product docs
  3. sourcegraph/deploy-sourcegraph-helm#1032: helm-k8s, helm-dind
  4. sourcegraph/deploy-sourcegraph-k8s#522: kustomize-k8s, kustomize-dind
  5. sourcegraph/deploy-sourcegraph-docker#1513: docker-compose
  6. sourcegraph/terraform-aws-executors#238: terraform-aws
  7. sourcegraph/terraform-google-executors#248: terraform-gcp
  8. sourcegraph/controller#2883: sourcegraph-cloud, for Sourcegraph Cloud-managed executors
  9. sourcegraph/docs#2190: legacy docs site; binary, binary-offline in the Linux binary install examples; merge after the release that ships #19875

3 to 8 can merge in any order once #19875 has merged; older executors ignore the variable.

Amp threads

Changelog

Set EXECUTOR_DEPLOY_TYPE to kustomize-k8s and kustomize-dind in the executor components.

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>
@github-actions

Copy link
Copy Markdown

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.

1 participant