-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Git Submodules should be configurable to ignore upstream, private submodules #10174
Comments
I think we could tackle this and #3799 at the same time. I'd propose adding these fields: apiVersion: argoproj.io/v1alpha1
kind: Application
spec:
source:
fetch:
submodules: # submodules: {} would mean fetch with default "recursive" value (true)
recursive: false I've seen other issues where folks wanted finer-grained control over how fetches happened. This new field would be a great place to add those features. |
Would a per-app config be sufficient, or would you want a global setting? |
I think I'm more concerned with being able to restrict pulling certain upstream, recursive submodules. For example: So if #3799 meets those expectations, then I'm all for it, but with the way I read that, it's not going to solve my expectation. |
Yeah, I don't think #3799 would solve your use case. But I wonder if |
Yes that might work, especially if it's per argo application. That might just be sufficient! Thanks! |
I'll try to piece together a PR real quick, but if it ends up being involved, will probably have to leave it as a draft to see if someone else can pick it up. |
This is an example of something else that could be configured in a new |
…goproj#10174) Signed-off-by: CI <michael@crenshaw.dev>
@ashutosh16 does this draft PR look like something you could pick up? |
@soudaburger You can manage submodules at git config level.. Add the option
|
Checklist:
argocd version
.Describe the bug
We instead attempted to leverage git submodules to clone down the teleport repository with a specific tag, e.g., v10.1.0. We were able to get this to properly work locally, but because argocd performs a git submodule --init --recursive, it ALSO pulled in the .gitmodules from the teleport repository. However, the e repository at git@github.com:gravitational/teleport.e.git appears to be a private repository and since we don't have access to the repository, argocd applications simply fail to render at all when submodules simply exist in our repo.
To Reproduce
Expected behavior
I expect that argocd should simply either silently skip the nested submodule it can't clone or otherwise be provided a configuration parameter to exclude specifically matched git submodules so that argocd does NOT attempt to clone them.
Version
ArgoCD Version: 2.4.8
ArgoCD Helm Version: 4.10.4
Logs
The text was updated successfully, but these errors were encountered: