Skip to content

Commit 9e7111b

Browse files
committed
Update source-controller/api to v0.12.0
Signed-off-by: Stefan Prodan <[email protected]>
1 parent 4068372 commit 9e7111b

File tree

6 files changed

+58
-47
lines changed

6 files changed

+58
-47
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CRD_OPTIONS ?= crd:crdVersions=v1
55

66
# Version of the source-controller from which to get the GitRepository CRD.
77
# Change this if you bump the source-controller/api version in go.mod.
8-
SOURCE_VER ?= v0.10.0
8+
SOURCE_VER ?= v0.12.0
99

1010
# Version of the image-reflector-controller from which to get the ImagePolicy CRD.
1111
# Change this if you bump the image-reflector-controller/api version in go.mod.

api/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.15
44

55
require (
66
github.com/fluxcd/pkg/apis/meta v0.9.0
7-
github.com/fluxcd/source-controller/api v0.10.0
7+
github.com/fluxcd/source-controller/api v0.12.0
88
k8s.io/apimachinery v0.20.4
99
sigs.k8s.io/controller-runtime v0.8.3
1010
)

api/go.sum

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,10 @@ github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7
8888
github.com/evanphx/json-patch v4.5.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
8989
github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
9090
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
91-
github.com/fluxcd/pkg/apis/meta v0.8.0/go.mod h1:yHuY8kyGHYz22I0jQzqMMGCcHViuzC/WPdo9Gisk8Po=
9291
github.com/fluxcd/pkg/apis/meta v0.9.0 h1:rxW69p+VmJCKXXkaRYnovRBFlKjd+MJQfm2RrB0B4j8=
9392
github.com/fluxcd/pkg/apis/meta v0.9.0/go.mod h1:yHuY8kyGHYz22I0jQzqMMGCcHViuzC/WPdo9Gisk8Po=
94-
github.com/fluxcd/source-controller/api v0.10.0 h1:Mu4cAXtZ7yq/rIrab81q1jbbhWwUxxAZ2R5bZ1m8AxE=
95-
github.com/fluxcd/source-controller/api v0.10.0/go.mod h1:Vuw+7UqEUUOdkKBfTUPHwaQgbn6LL2FwqPDx2UAk7NE=
93+
github.com/fluxcd/source-controller/api v0.12.0 h1:ATzWCIXE96Q1iOHElzM0V4xCVEn95QLKpOSmVLiY/lo=
94+
github.com/fluxcd/source-controller/api v0.12.0/go.mod h1:+EPyhxC7Y+hUnq7EwAkkLtfbwCxJxF5yfmiyzDk43KY=
9695
github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k=
9796
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
9897
github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=

controllers/imageupdateautomation_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ func (r *ImageUpdateAutomationReconciler) getRepoAccess(ctx context.Context, rep
433433
var access repoAccess
434434
access.auth = &git.Auth{}
435435
access.url = repository.Spec.URL
436-
authStrat, err := gitstrat.AuthSecretStrategyForURL(access.url, repository.Spec.GitImplementation)
436+
authStrat, err := gitstrat.AuthSecretStrategyForURL(access.url, git.CheckoutOptions{GitImplementation: repository.Spec.GitImplementation})
437437
if err != nil {
438438
return access, err
439439
}
@@ -472,7 +472,7 @@ func (r repoAccess) remoteCallbacks() libgit2.RemoteCallbacks {
472472
// returns a `*gogit.Repository` regardless of the git library, since
473473
// that is used for committing changes.
474474
func cloneInto(ctx context.Context, access repoAccess, ref *sourcev1.GitRepositoryRef, path, impl string) (*gogit.Repository, error) {
475-
checkoutStrat, err := gitstrat.CheckoutStrategyForRef(ref, impl)
475+
checkoutStrat, err := gitstrat.CheckoutStrategyForRef(ref, git.CheckoutOptions{GitImplementation: impl})
476476
if err == nil {
477477
_, _, err = checkoutStrat.Checkout(ctx, path, access.url, access.auth)
478478
}

go.mod

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ require (
1414
github.com/fluxcd/pkg/runtime v0.11.0
1515
github.com/fluxcd/pkg/ssh v0.0.5
1616
// If you bump this, change SOURCE_VER in the Makefile to match
17-
github.com/fluxcd/source-controller v0.10.0
18-
github.com/fluxcd/source-controller/api v0.10.0
19-
github.com/go-git/go-billy/v5 v5.0.0
20-
github.com/go-git/go-git/v5 v5.2.0
21-
github.com/go-logr/logr v0.3.0
17+
github.com/fluxcd/source-controller v0.12.0
18+
github.com/fluxcd/source-controller/api v0.12.0
19+
github.com/go-git/go-billy/v5 v5.1.0
20+
github.com/go-git/go-git/v5 v5.3.0
21+
github.com/go-logr/logr v0.4.0
2222
github.com/go-openapi/spec v0.19.5
2323
github.com/google/go-containerregistry v0.1.1
2424
github.com/libgit2/git2go/v31 v31.4.7
2525
github.com/onsi/ginkgo v1.14.1
2626
github.com/onsi/gomega v1.10.2
2727
github.com/otiai10/copy v1.2.0
2828
github.com/spf13/pflag v1.0.5
29-
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad
29+
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2
3030
k8s.io/api v0.20.4
3131
k8s.io/apimachinery v0.20.4
3232
k8s.io/client-go v0.20.4

0 commit comments

Comments
 (0)