Skip to content

Commit f41e264

Browse files
author
Paulo Gomes
committed
features: Remove ForceGoGitImplementation
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
1 parent 792b8a1 commit f41e264

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

internal/features/features.go

+1-19
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,18 @@ import feathelper "github.com/fluxcd/pkg/runtime/features"
2323

2424
const (
2525
// OptimizedGitClones decreases resource utilization for GitRepository
26-
// reconciliations. It supports both go-git and libgit2 implementations
27-
// when cloning repositories using branches or tags.
26+
// reconciliations.
2827
//
2928
// When enabled, avoids full clone operations by first checking whether
3029
// the last revision is still the same at the target repository,
3130
// and if that is so, skips the reconciliation.
3231
OptimizedGitClones = "OptimizedGitClones"
33-
// ForceGoGitImplementation ignores the value set for gitImplementation
34-
// and ensures that go-git is used for all GitRepository objects.
35-
//
36-
// Libgit2 is built in C and we use the Go bindings provided by git2go
37-
// to cross the C-GO chasm. Unfortunately, when libgit2 is being used the
38-
// controllers are known to panic over long periods of time, or when
39-
// under high GC pressure.
40-
//
41-
// This feature gate enables the gradual deprecation of libgit2 in favour
42-
// of go-git, which so far is the most stable of the pair.
43-
//
44-
// When enabled, libgit2 won't be initialized, nor will any git2go CGO
45-
// code be called.
46-
ForceGoGitImplementation = "ForceGoGitImplementation"
4732
)
4833

4934
var features = map[string]bool{
5035
// OptimizedGitClones
5136
// opt-out from v0.25
5237
OptimizedGitClones: true,
53-
// ForceGoGitImplementation
54-
// opt-out from v0.32
55-
ForceGoGitImplementation: true,
5638
}
5739

5840
// DefaultFeatureGates contains a list of all supported feature gates and

0 commit comments

Comments
 (0)