|
|
|
@ -16,26 +16,32 @@ limitations under the License.
|
|
|
|
|
|
|
|
|
|
package sync
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
import (
|
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
sourcev1 "github.com/fluxcd/source-controller/api/v1beta1"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Options struct {
|
|
|
|
|
Interval time.Duration
|
|
|
|
|
URL string
|
|
|
|
|
Name string
|
|
|
|
|
Namespace string
|
|
|
|
|
Branch string
|
|
|
|
|
TargetPath string
|
|
|
|
|
ManifestFile string
|
|
|
|
|
Interval time.Duration
|
|
|
|
|
URL string
|
|
|
|
|
Name string
|
|
|
|
|
Namespace string
|
|
|
|
|
Branch string
|
|
|
|
|
TargetPath string
|
|
|
|
|
ManifestFile string
|
|
|
|
|
GitImplementation string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func MakeDefaultOptions() Options {
|
|
|
|
|
return Options{
|
|
|
|
|
Interval: 1 * time.Minute,
|
|
|
|
|
URL: "",
|
|
|
|
|
Name: "flux-system",
|
|
|
|
|
Namespace: "flux-system",
|
|
|
|
|
Branch: "main",
|
|
|
|
|
ManifestFile: "gotk-sync.yaml",
|
|
|
|
|
TargetPath: "",
|
|
|
|
|
Interval: 1 * time.Minute,
|
|
|
|
|
URL: "",
|
|
|
|
|
Name: "flux-system",
|
|
|
|
|
Namespace: "flux-system",
|
|
|
|
|
Branch: "main",
|
|
|
|
|
ManifestFile: "gotk-sync.yaml",
|
|
|
|
|
TargetPath: "",
|
|
|
|
|
GitImplementation: sourcev1.GoGitImplementation,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|