Skip to content

Move DEPLOY_TYPE to the end of env lists - #521

Merged
marcleblanc2 merged 1 commit into
mainfrom
marc/deploy-type-env-last
Nov 25, 2026
Merged

marcleblanc2 merged 1 commit into
mainfrom
marc/deploy-type-env-last

Conversation

@marcleblanc2

Copy link
Copy Markdown
Contributor

Problem

#520 added DEPLOY_TYPE as the first entry in each container's env list, which shifts the index of every existing entry. Instance patches that target env entries by index would now overwrite DEPLOY_TYPE instead of the variable they meant to change, for example the searcher SEARCHER_CACHE_SIZE_MB patch on /spec/template/spec/containers/0/env/0 in instances/template/kustomization.template.yaml and in the docs.

Solution

Move DEPLOY_TYPE to the end of the env list in the 10 containers that already had other env vars: frontend, gitserver, zoekt-webserver, zoekt-indexserver, searcher, precise-code-intel-worker, syntactic-code-intel, worker, and both executors. Where DEPLOY_TYPE is the only entry (blobstore, syntect-server, the migrator init container and Job), nothing changes.


Checklist

Test plan

  • Rendered every example that builds (aws, base, dev, executors, gke, minikube, monitoring, old-cluster, privileged), plus components/executors/dind and components/utils/migrator, with kubectl kustomize, before Set DEPLOY_TYPE=kustomize #520 and on this branch. In every container, the env entries from before Set DEPLOY_TYPE=kustomize #520 are back at their original indices, and DEPLOY_TYPE comes after them. Entries that components append with env/- (rockskip, tracing) still follow it.
  • kubeconform -strict (Kubernetes 1.33.0) passes on examples/base.

#520 put DEPLOY_TYPE first in each container's env list, which shifts
the index of every existing entry. Instance patches that target env
entries by index, such as the searcher SEARCHER_CACHE_SIZE_MB replace on
/env/0 in instances/template/kustomization.template.yaml and the docs,
would then overwrite DEPLOY_TYPE instead. Append it instead, so existing
indices are unchanged.

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 25, 2026 •

Copy link
Copy Markdown

@marcleblanc2
marcleblanc2 enabled auto-merge (squash) November 25, 2026 06:51
@marcleblanc2
marcleblanc2 merged commit 01cf608 into main Nov 25, 2026
4 checks passed
@marcleblanc2
marcleblanc2 deleted the marc/deploy-type-env-last branch November 25, 2026 07:58
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