From 3b249dfe69a125fcc4cc2b1e3e16afe90660cbe6 Mon Sep 17 00:00:00 2001 From: Philip Laine Date: Thu, 14 Jan 2021 00:21:57 +0100 Subject: [PATCH] Change default to use const Signed-off-by: Philip Laine --- pkg/manifestgen/sync/options.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/manifestgen/sync/options.go b/pkg/manifestgen/sync/options.go index 93b37acc..4fb5955a 100644 --- a/pkg/manifestgen/sync/options.go +++ b/pkg/manifestgen/sync/options.go @@ -16,7 +16,11 @@ limitations under the License. package sync -import "time" +import ( + "time" + + sourcev1 "github.com/fluxcd/source-controller/api/v1beta1" +) type Options struct { Interval time.Duration @@ -38,6 +42,6 @@ func MakeDefaultOptions() Options { Branch: "main", ManifestFile: "gotk-sync.yaml", TargetPath: "", - GitImplementation: "go-git", + GitImplementation: sourcev1.GoGitImplementation, } }