-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to add local directory as source #3432
Comments
Hello @neilharris123 , Some Argo CD CLI commands already supports using local directory: compare live app state and local manifests source:
sync app using local manifests
Does it cover your use cases? |
Hello @alexmt, It does support my use case up to a point because in theory I can create the app initially from the repo, then sync to add the local changes. However, I've noticed when I perform a sync using the
It appears kustomize build option support for sync from repo this was added here, but does not appear to work when using the |
Which Argo CD version are you using? The local diff has started properly using build options in 1.5: bc33f19 |
Hi @alexmt |
Summary
In the application resource YAML file, we are able to add a source repo and path.
It would be useful to be able to specify the local directory for testing locally.
Motivation
I'm creating CI tests and automated dev deployment scripts which are triggered in the PR. The container I am using already contains a replica/clone of the git branch the test will run against. I would like to change certain values in manifests in the containers local directory. But when I run argocd cli commands against the application resource file in the local directory, because the source repoURL value must point at the remote git branch, the local changes are never propagated as I would like.
Proposal
I was thinking something like the following would satisfy my needs:
or
The text was updated successfully, but these errors were encountered: