@@ -23,36 +23,18 @@ import feathelper "github.com/fluxcd/pkg/runtime/features"
23
23
24
24
const (
25
25
// 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.
28
27
//
29
28
// When enabled, avoids full clone operations by first checking whether
30
29
// the last revision is still the same at the target repository,
31
30
// and if that is so, skips the reconciliation.
32
31
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"
47
32
)
48
33
49
34
var features = map [string ]bool {
50
35
// OptimizedGitClones
51
36
// opt-out from v0.25
52
37
OptimizedGitClones : true ,
53
- // ForceGoGitImplementation
54
- // opt-out from v0.32
55
- ForceGoGitImplementation : true ,
56
38
}
57
39
58
40
// DefaultFeatureGates contains a list of all supported feature gates and
0 commit comments