argo-cd/docs/user-guide/build-environment.md
May Zhang ff07b112b1
fix: update documentation for adding environment variable KUBE_VERSION and KUBE_API_VERSION (#3323)
* ArgoCD plugin: add environment variable KUBEVERSION and KUBE_API_VERSIONS.

* Added test verification of KUBE_API_VERSION

* Using assert.EqualValues for assertion.

* update build-environment.md to add KUBE_VERSION and KUBE_API_VERSIONS
2020-03-31 20:21:39 -07:00

657 B

Build Environment

v1.4

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

  • ARGOCD_APP_NAME - name of application
  • ARGOCD_APP_NAMESPACE - destination application namespace.
  • ARGOCD_APP_REVISION - the resolved revision, e.g. f913b6cbf58aa5ae5ca1f8a2b149477aebcbd9d8
  • ARGOCD_APP_SOURCE_PATH - the path of the app within the repo
  • ARGOCD_APP_SOURCE_REPO_URL the repo's URL
  • ARGOCD_APP_SOURCE_TARGET_REVISION - the target revision from the spec, e.g. master.
  • KUBE_VERSION - the version of kubernetes
  • KUBE_API_VERSIONS = the version of kubernetes API