From a9af390d2d49a10b13203141a68cfd383ad4893e Mon Sep 17 00:00:00 2001 From: Sunny Date: Thu, 26 Sep 2024 18:04:46 +0000 Subject: [PATCH] Update source-controller to v1.4.1 Signed-off-by: Sunny --- go.mod | 2 +- go.sum | 4 ++-- internal/source/git.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 1bd41b1e..f4c5d00a 100644 --- a/go.mod +++ b/go.mod @@ -26,7 +26,7 @@ require ( github.com/fluxcd/pkg/gittestserver v0.13.1 github.com/fluxcd/pkg/runtime v0.49.1 github.com/fluxcd/pkg/ssh v0.14.1 - github.com/fluxcd/source-controller/api v1.4.0 + github.com/fluxcd/source-controller/api v1.4.1 github.com/go-git/go-billy/v5 v5.5.0 github.com/go-git/go-git/v5 v5.12.0 github.com/go-logr/logr v1.4.2 diff --git a/go.sum b/go.sum index 62901454..e90026c6 100644 --- a/go.sum +++ b/go.sum @@ -88,8 +88,8 @@ github.com/fluxcd/pkg/ssh v0.14.1 h1:C/RBDch6cxAqQtaOohcasSAeGfZznNEeZtvpfI+hXQY github.com/fluxcd/pkg/ssh v0.14.1/go.mod h1:HsVzHyF7CkfTnjtLEI6XK+8tfyWqwI1TPxJ34HcMg2o= github.com/fluxcd/pkg/version v0.4.1 h1:xnw+cu+GRcQSBTejcGiigYpipszO4Cn5UUGpAHVN4F0= github.com/fluxcd/pkg/version v0.4.1/go.mod h1:hO3ul44vTFFrosekcnrpxoPaM4cLbET4Fc/LR6pz4YQ= -github.com/fluxcd/source-controller/api v1.4.0 h1:PCCrD9aSIqaqfl3O/ug5ZLl5NSAFKTrNFFNFjNUt4yQ= -github.com/fluxcd/source-controller/api v1.4.0/go.mod h1:gSjg57T+IG66SsBR0aquv+DFrm4YyBNpKIJVDnu3Ya8= +github.com/fluxcd/source-controller/api v1.4.1 h1:zV01D7xzHOXWbYXr36lXHWWYS7POARsjLt61Nbh3kVY= +github.com/fluxcd/source-controller/api v1.4.1/go.mod h1:gSjg57T+IG66SsBR0aquv+DFrm4YyBNpKIJVDnu3Ya8= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= diff --git a/internal/source/git.go b/internal/source/git.go index 5e64ee45..2adcf3b3 100644 --- a/internal/source/git.go +++ b/internal/source/git.go @@ -181,7 +181,7 @@ func getAuthOpts(ctx context.Context, c client.Client, repo *sourcev1.GitReposit return nil, fmt.Errorf("failed to configure authentication options: %w", err) } - if repo.Spec.Provider == sourcev1.GitProviderAzure { + if repo.GetProvider() == sourcev1.GitProviderAzure { opts.ProviderOpts = &git.ProviderOptions{ Name: sourcev1.GitProviderAzure, AzureOpts: []azure.OptFunc{