Skip to content

Conversation

@stefanprodan
Copy link
Member

@stefanprodan stefanprodan commented Mar 29, 2021

Several Git sub-modules issues were fixed in go-git v5.3.0 (released today) so we can enable this feature in source-controller.

This PR addresses fluxcd/flux2#326

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan added enhancement New feature or request area/git Git related issues and pull requests labels Mar 29, 2021
@stefanprodan stefanprodan requested a review from hiddeco March 29, 2021 12:26
@hiddeco
Copy link
Member

hiddeco commented Mar 29, 2021

While this does technically work, I am wondering how easy it will be to setup for our users. As we upsert our private key as a deploy key in the bootstrap process, and a deploy key can not exist in multiple repositories, the setup for private submodules will likely either require HTTP/S credentials with a broad(er) access scope, or a private key from a (bot) user.

@stefanprodan
Copy link
Member Author

@hiddeco I don't think this is our concern, people can use HTTPS when bootstrapping or provide a SSH key that belongs to a bot. I would not recommend sub-modules to anyone, but seems that some flux1 users depend on this feature, with this they can migrate as they were using HTTPS anyway.

@stefanprodan stefanprodan merged commit 5486321 into main Mar 29, 2021
@stefanprodan stefanprodan deleted the go-git-submodules branch March 29, 2021 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/git Git related issues and pull requests enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants