Skip to content

Commit 97a2cdd

Browse files
committed
api/v1: Remove deprecated GitImplementation
Signed-off-by: Hidde Beydals <[email protected]>
1 parent 462178e commit 97a2cdd

File tree

4 files changed

+3
-53
lines changed

4 files changed

+3
-53
lines changed

api/v1/gitrepository_types.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,6 @@ type GitRepositorySpec struct {
9494
// +optional
9595
Suspend bool `json:"suspend,omitempty"`
9696

97-
// GitImplementation specifies which Git client library implementation to
98-
// use. Defaults to 'go-git', valid values are ('go-git', 'libgit2').
99-
// Deprecated: gitImplementation is deprecated now that 'go-git' is the
100-
// only supported implementation.
101-
// +kubebuilder:validation:Enum=go-git;libgit2
102-
// +kubebuilder:default:=go-git
103-
// +optional
104-
GitImplementation string `json:"gitImplementation,omitempty"`
105-
10697
// RecurseSubmodules enables the initialization of all submodules within
10798
// the GitRepository as cloned from the URL, using their default settings.
10899
// +optional

config/crd/bases/source.toolkit.fluxcd.io_gitrepositories.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,6 @@ spec:
5151
description: GitRepositorySpec specifies the required configuration to
5252
produce an Artifact for a Git repository.
5353
properties:
54-
gitImplementation:
55-
default: go-git
56-
description: 'GitImplementation specifies which Git client library
57-
implementation to use. Defaults to ''go-git'', valid values are
58-
(''go-git'', ''libgit2''). Deprecated: gitImplementation is deprecated
59-
now that ''go-git'' is the only supported implementation.'
60-
enum:
61-
- go-git
62-
- libgit2
63-
type: string
6454
ignore:
6555
description: Ignore overrides the set of excluded patterns in the
6656
.sourceignore format (which is the same as .gitignore). If not provided,

controllers/gitrepository_controller_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,10 +1740,9 @@ func TestGitRepositoryReconciler_ConditionsUpdate(t *testing.T) {
17401740
Finalizers: []string{sourcev1.SourceFinalizer},
17411741
},
17421742
Spec: sourcev1.GitRepositorySpec{
1743-
URL: server.HTTPAddress() + repoPath,
1744-
GitImplementation: sourcev1.GoGitImplementation,
1745-
Interval: metav1.Duration{Duration: interval},
1746-
Timeout: &metav1.Duration{Duration: timeout},
1743+
URL: server.HTTPAddress() + repoPath,
1744+
Interval: metav1.Duration{Duration: interval},
1745+
Timeout: &metav1.Duration{Duration: timeout},
17471746
},
17481747
}
17491748

docs/api/v1/source.md

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -184,21 +184,6 @@ GitRepository.</p>
184184
</tr>
185185
<tr>
186186
<td>
187-
<code>gitImplementation</code><br>
188-
<em>
189-
string
190-
</em>
191-
</td>
192-
<td>
193-
<em>(Optional)</em>
194-
<p>GitImplementation specifies which Git client library implementation to
195-
use. Defaults to &lsquo;go-git&rsquo;, valid values are (&lsquo;go-git&rsquo;, &lsquo;libgit2&rsquo;).
196-
Deprecated: gitImplementation is deprecated now that &lsquo;go-git&rsquo; is the
197-
only supported implementation.</p>
198-
</td>
199-
</tr>
200-
<tr>
201-
<td>
202187
<code>recurseSubmodules</code><br>
203188
<em>
204189
bool
@@ -635,21 +620,6 @@ GitRepository.</p>
635620
</tr>
636621
<tr>
637622
<td>
638-
<code>gitImplementation</code><br>
639-
<em>
640-
string
641-
</em>
642-
</td>
643-
<td>
644-
<em>(Optional)</em>
645-
<p>GitImplementation specifies which Git client library implementation to
646-
use. Defaults to &lsquo;go-git&rsquo;, valid values are (&lsquo;go-git&rsquo;, &lsquo;libgit2&rsquo;).
647-
Deprecated: gitImplementation is deprecated now that &lsquo;go-git&rsquo; is the
648-
only supported implementation.</p>
649-
</td>
650-
</tr>
651-
<tr>
652-
<td>
653623
<code>recurseSubmodules</code><br>
654624
<em>
655625
bool

0 commit comments

Comments
 (0)