You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @oisin88 this works as expected. You cannot use resources that don't exists in the cluster at the time of the installation. This chart installs CustomResourceDefinitions for ApplicationSet, Application and AppProject. For bootstrap there is argocd-apps chart that needs to installed after this one.
Describe the bug
The value "extraObjects" does not work when the type is Argo "ApplicationSet".
If you you add the sample ApplicationSet from Argo Docs to values.yaml under extraObjects.
https://argo-cd.readthedocs.io/en/stable/user-guide/application-set/
and run
helm template .
it fails with:
Error: template: argo-cd/templates/extra-manifests.yaml:3:3: executing "argo-cd/templates/extra-manifests.yaml" at <tpl (toYaml .) $>: error calling tpl: error during tpl function execution for "apiVersion: argoproj.io/v1alpha1\nkind: ApplicationSet\nmetadata:\n name: guestbook\nspec:\n generators:\n - list:\n elements:\n - cluster: engineering-dev\n url: https://1.2.3.4\n - cluster: engineering-prod\n url: https://2.4.6.8\n - cluster: finance-preprod\n url: https://9.8.7.6\n template:\n metadata:\n name: '{{cluster}}-guestbook'\n spec:\n destination:\n namespace: guestbook\n server: '{{url}}'\n project: default\n source:\n path: applicationset/examples/list-generator/guestbook/{{cluster}}\n repoURL: https://github.com/argoproj/argo-cd.git\n targetRevision: HEAD": parse error at (argo-cd/templates/extra-manifests.yaml:17): function "cluster" not defined helm.go:84: [debug] template: argo-cd/templates/extra-manifests.yaml:3:3: executing "argo-cd/templates/extra-manifests.yaml" at <tpl (toYaml .) $>: error calling tpl: error during tpl function execution for "apiVersion: argoproj.io/v1alpha1\nkind: ApplicationSet\nmetadata:\n name: guestbook\nspec:\n generators:\n - list:\n elements:\n - cluster: engineering-dev\n url: https://1.2.3.4\n - cluster: engineering-prod\n url: https://2.4.6.8\n - cluster: finance-preprod\n url: https://9.8.7.6\n template:\n metadata:\n name: '{{cluster}}-guestbook'\n spec:\n destination:\n namespace: guestbook\n server: '{{url}}'\n project: default\n source:\n path: applicationset/examples/list-generator/guestbook/{{cluster}}\n repoURL: https://github.com/argoproj/argo-cd.git\n targetRevision: HEAD": parse error at (argo-cd/templates/extra-manifests.yaml:17): function "cluster" not defined coder@oisin-devspace:~/mycode/argo-helm/charts/argo-cd$ helm template . Error: template: argo-cd/templates/extra-manifests.yaml:3:3: executing "argo-cd/templates/extra-manifests.yaml" at <tpl (toYaml .) $>: error calling tpl: error during tpl function execution for "apiVersion: argoproj.io/v1alpha1\nkind: ApplicationSet\nmetadata:\n name: guestbook\nspec:\n generators:\n - list:\n elements:\n - cluster: engineering-dev\n url: https://1.2.3.4\n - cluster: engineering-prod\n url: https://2.4.6.8\n - cluster: finance-preprod\n url: https://9.8.7.6\n template:\n metadata:\n name: '{{cluster}}-guestbook'\n spec:\n destination:\n namespace: guestbook\n server: '{{url}}'\n project: default\n source:\n path: applicationset/examples/list-generator/guestbook/{{cluster}}\n repoURL: https://github.com/argoproj/argo-cd.git\n targetRevision: HEAD": parse error at (argo-cd/templates/extra-manifests.yaml:17): function "cluster" not defined
It will render if you remove the curly bracers, but these will alomst always be in ApplicationSet.
Related helm chart
argo-cd
Helm chart version
5.24.0
To Reproduce
add to values.yaml
run
helm template.
Expected behavior
This field should support all helm and kubernetes manifests. It should work with all Argo CRDs including application sets.
Screenshots
No response
Additional context
I am trying to create a multi instance argo setup using your chart. thanks it is great !
I want to use your chart for "master" and "worker" Argos. I would like the master Argo to create worker Argos using ApplicationSet.
The only real difference between the Worker and master apps will be the apps they sync. So extraObjects would be ideal if it supported extraObjects.
Thanks,
Oisin
The text was updated successfully, but these errors were encountered: