mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-04-03 07:18:49 +02:00
615 B
615 B
Jsonnet
Any file matching *.jsonnet in a directory app is treated as a Jsonnet file.
Build Environment
v1.3
Jsonnet apps have access to the standard build environment via substitution into TLAs and external variables.
E.g. via the CLI:
argocd app create APPNAME \
--jsonnet-ext-str 'app=${ARGOCD_APP_NAME}' \
--jsonnet-tla-str 'ns=${ARGOCD_APP_NAMESPACE}'
Or by declarative syntax:
directory:
jsonnet:
extVars:
- name: app
value: $ARGOCD_APP_NAME
tlas:
- name: ns
value: $ARGOCD_APP_NAMESPACE