Argo CD CLI prevents appset from being created when using list generator with empty array #17450
Closed
2 of 3 tasks
Labels
bug
Something isn't working
Checklist:
argocd version
.Describe the bug
An Akuity customer reported that they are having difficulties creating an ApplicationSet with the Argo CD CLI. The ApplicationSet consists of a matrix generator that uses both the git (file) generator, and a list generator. When they try to apply the ApplicationSet with the command
argocd appset create <file>
they get the following error:This seems to be a bug that occurs only with the CLI. When applying the ApplicationSet using the app-of-apps pattern, the ApplicationSet deploys and generates the expected Application resources.
To Reproduce
Here's an ApplicationSet yaml that I tested with works with app-of-apps, but not using the CLI.
This also applies for a bare list generator (that's not a part of a matrix generator)
If you apply the first one with
argocd appset create <file>
you'll getIf you apply the second one with
argocd appset create <file>
you'll getExpected behavior
No errors.
Version
The text was updated successfully, but these errors were encountered: