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
If the path field is set in the $values source, Argo CD will attempt to generate resources from the git repository at that URL. If the path field is not set, Argo CD will use the repository solely as a source of value files.
Currently - since path defaults to ".", this provider always instantiates applications which attempt to deploy any resources at this path (in my case, I have a Backstage definition file which uses the CRD format, which ArgoCD attempts to deploy).
Actual Behavior
The path index should be absent within the application source block. I can edit my applications once deployed to remove this - and everything works as expected.
I believe this is due to the default currently set within the application schema here.
Workaround
It's possible to simply specify a path that does not contain a YAML resource, since this is a non-op. For example, setting path to .git means that ArgoCD does not find any YAML resources and continues as normal, however this is not ideal for a few obvious reasons.
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Terraform Version, ArgoCD Provider Version and ArgoCD Version
Affected Resource(s)
Terraform Configuration Files
Steps to Reproduce
terraform plan
orterraform apply
Plan output:
Expected Behavior
Terraform should not attempt to add a
path
to the source where it is absent, or explicitlynull
.Otherwise, ArgoCD will attempt to deploy any YAML resources found at the source repository. This behaviour is documented in ArgoCD's documentation - https://argo-cd.readthedocs.io/en/stable/user-guide/multiple_sources/#helm-value-files-from-external-git-repository.
Currently - since
path
defaults to"."
, this provider always instantiates applications which attempt to deploy any resources at this path (in my case, I have a Backstage definition file which uses the CRD format, which ArgoCD attempts to deploy).Actual Behavior
The
path
index should be absent within the applicationsource
block. I can edit my applications once deployed to remove this - and everything works as expected.I believe this is due to the default currently set within the application schema here.
Workaround
It's possible to simply specify a path that does not contain a YAML resource, since this is a non-op. For example, setting path to
.git
means that ArgoCD does not find any YAML resources and continues as normal, however this is not ideal for a few obvious reasons.Community Note
The text was updated successfully, but these errors were encountered: