Change default to use const
Signed-off-by: Philip Laine <philip.laine@gmail.com>
This commit is contained in:
@@ -16,7 +16,11 @@ limitations under the License.
|
|||||||
|
|
||||||
package sync
|
package sync
|
||||||
|
|
||||||
import "time"
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
|
sourcev1 "github.com/fluxcd/source-controller/api/v1beta1"
|
||||||
|
)
|
||||||
|
|
||||||
type Options struct {
|
type Options struct {
|
||||||
Interval time.Duration
|
Interval time.Duration
|
||||||
@@ -38,6 +42,6 @@ func MakeDefaultOptions() Options {
|
|||||||
Branch: "main",
|
Branch: "main",
|
||||||
ManifestFile: "gotk-sync.yaml",
|
ManifestFile: "gotk-sync.yaml",
|
||||||
TargetPath: "",
|
TargetPath: "",
|
||||||
GitImplementation: "go-git",
|
GitImplementation: sourcev1.GoGitImplementation,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user