Repository navigation
Move DEPLOY_TYPE to the end of env lists - #521
Merged
Merged
Conversation
#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>
marcleblanc2
enabled auto-merge (squash)
November 25, 2026 06:51
filiphaftek
approved these changes
Nov 25, 2026
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
#520 added
DEPLOY_TYPEas the first entry in each container'senvlist, which shifts the index of every existing entry. Instance patches that target env entries by index would now overwriteDEPLOY_TYPEinstead of the variable they meant to change, for example the searcherSEARCHER_CACHE_SIZE_MBpatch on/spec/template/spec/containers/0/env/0ininstances/template/kustomization.template.yamland in the docs.Solution
Move
DEPLOY_TYPEto the end of theenvlist 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 bothexecutors. WhereDEPLOY_TYPEis the only entry (blobstore,syntect-server, themigratorinit container and Job), nothing changes.Checklist
environmentis not patched by index)Test plan
aws,base,dev,executors,gke,minikube,monitoring,old-cluster,privileged), pluscomponents/executors/dindandcomponents/utils/migrator, withkubectl 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, andDEPLOY_TYPEcomes after them. Entries that components append withenv/-(rockskip, tracing) still follow it.kubeconform -strict(Kubernetes 1.33.0) passes onexamples/base.