|
|
@ -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
|
|
|
@ -26,6 +30,7 @@ type Options struct {
|
|
|
|
Branch string
|
|
|
|
Branch string
|
|
|
|
TargetPath string
|
|
|
|
TargetPath string
|
|
|
|
ManifestFile string
|
|
|
|
ManifestFile string
|
|
|
|
|
|
|
|
GitImplementation string
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func MakeDefaultOptions() Options {
|
|
|
|
func MakeDefaultOptions() Options {
|
|
|
@ -37,5 +42,6 @@ func MakeDefaultOptions() Options {
|
|
|
|
Branch: "main",
|
|
|
|
Branch: "main",
|
|
|
|
ManifestFile: "gotk-sync.yaml",
|
|
|
|
ManifestFile: "gotk-sync.yaml",
|
|
|
|
TargetPath: "",
|
|
|
|
TargetPath: "",
|
|
|
|
|
|
|
|
GitImplementation: sourcev1.GoGitImplementation,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|