Files
deploy/docs/user-guide/build-environment.md
zeekayandHanzo Dev dead2da249 cd: the configuration speaks CD_ and KV_
The fork was already ours everywhere that matters — our image, our IAM (dex
is not deployed), hanzo kv behind what the env still called REDIS. Only the
vocabulary was upstream's: ARGOCD_* across the Go, the manifests, the docs
and the plugin contract, and mkdocs still titled 'Argo CD' pointing at
argoproj/argo-cd.

ARGOCD_ -> CD_ and REDIS_ -> KV_ across 345 files, plus the 8 e2e/cmp
fixtures that assert the plugin env contract — those had to move with the
binary, which now emits CD_APP_NAME where they expected ARGOCD_APP_NAME.

Left alone deliberately, because renaming them would be wrong:
- util/helm/testdata/redis/ and gitops-engine/.../statefulset*.yaml are
  fixtures for a THIRD-PARTY chart named redis, not our config
- util/kustomize/testdata/ likewise
- generated.proto regenerates from types.go, which is already clean

go build ./... exit 0.

LOCKSTEP: the live StatefulSet sets 47 ARGOCD_* names the binary no longer
reads. universe 4a5375735 carries the matching manifest change; they deploy
together or the controller falls back to defaults.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-28 15:55:46 -07:00

1.7 KiB

Build Environment

Custom tools, Helm, Jsonnet, and Kustomize support the following build env vars:

Variable Description
CD_APP_NAME The name of the application.
CD_APP_NAMESPACE The destination namespace of the application.
CD_APP_PROJECT_NAME The name of the project the application belongs to.
CD_APP_REVISION The resolved revision, e.g. f913b6cbf58aa5ae5ca1f8a2b149477aebcbd9d8.
CD_APP_REVISION_SHORT The resolved short revision, e.g. f913b6c.
CD_APP_REVISION_SHORT_8 The resolved short revision with length 8, e.g. f913b6cb.
CD_APP_SOURCE_PATH The path of the app within the source repo.
CD_APP_SOURCE_REPO_URL The source repo URL.
CD_APP_SOURCE_TARGET_REVISION The target revision from the spec, e.g. master.
KUBE_VERSION The semantic version of Kubernetes without trailing metadata.
KUBE_API_VERSIONS The version of the Kubernetes API.

In case you don't want a variable to be interpolated, $ can be escaped via $$.

command:
  - sh
  - -c
  - |
    echo $$FOO