Hello,

ArgoCD has a feature in the application resource which allows to reference helm value files from external git repositories, outside of the default Chart repository.

see: "https://argo-cd.readthedocs.io/en/latest/user-guide/multiple_sources/" under "Helm value files from external Git repository"

unfortunately The Digital-AI ArgoCD task is not able to do this.


an example API call of the important bits achieving this external helm-values configuration is explained below...



to do it via the API:

curl with POST to the ArgoCD applications API Endpoint "/api/v1/applications" according to https://cd.apps.argoproj.io/swagger-ui#tag/ApplicationService/operation/ApplicationService_Create

the relevant payload is given below

{
...
"spec": {
"sources": [
{
"repoURL": "https://CHARTS-repo-url.git",
"path": "Charts/Chart1",
"targetRevision": "chart-1.0.0",
"helm":

{ "valueFiles": [ "$values/Dev/Chart1/env-specific-values.yaml", "$values/defaults/values.yaml" ] }
},


{ "repoURL": "https://CONFIG-repo-url.git", "targetRevision": "config-1.0.0", "ref": "values" }
]
}
...
}


The important parts for us are:
1. the additional repoURL for the config-repo must be configurable (with targetRevision for proper versioning)
2. using the ref from the additional repo in the valueFiles list
3. multiple values files should be settable in order to provide also a set of defaults

Regards

Comments