Skip to content
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

refactor reconciler to use fluxcd/pkg/git #430

Merged
merged 1 commit into from
Sep 30, 2022

Conversation

aryan9600
Copy link
Member

Refactor reconciler to use fluxcd/pkg/git and fluxcd/pkg/git/libgit2. Consequently, remove all git related helper methods and tests.

Signed-off-by: Sanskar Jaiswal [email protected]

Comment on lines +275 to 270
opts := git.CloneOptions{}
if ref != nil {
opts.Tag = ref.Tag
opts.SemVer = ref.SemVer
opts.Commit = ref.Commit
opts.Branch = ref.Branch
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be a helper func, as we will need to convert ref to CloneOptions here and in tests.

controllers/suite_test.go Outdated Show resolved Hide resolved
@pjbgf pjbgf added this to the GA milestone Sep 2, 2022
@pjbgf pjbgf changed the base branch from main to git-refactoring September 2, 2022 12:13
@aryan9600 aryan9600 force-pushed the use-pkg-git branch 2 times, most recently from 68c56c4 to 46b66ad Compare September 29, 2022 10:13
@pjbgf pjbgf added the area/git Git related issues and pull requests label Sep 29, 2022
@pjbgf pjbgf marked this pull request as ready for review September 30, 2022 11:19
@pjbgf pjbgf merged commit 8f7a773 into fluxcd:git-refactoring Sep 30, 2022
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
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants