mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-25 21:08:50 +00:00
Add git implementation to generate sync options
Signed-off-by: Philip Laine <philip.laine@gmail.com>
This commit is contained in:
parent
ad9b0ae067
commit
d236a9af57
7 changed files with 31 additions and 27 deletions
|
|
@ -164,13 +164,14 @@ func applyInstallManifests(ctx context.Context, manifestPath string, components
|
|||
|
||||
func generateSyncManifests(url, branch, name, namespace, targetPath, tmpDir string, interval time.Duration) (string, error) {
|
||||
opts := sync.Options{
|
||||
Name: name,
|
||||
Namespace: namespace,
|
||||
URL: url,
|
||||
Branch: branch,
|
||||
Interval: interval,
|
||||
TargetPath: targetPath,
|
||||
ManifestFile: sync.MakeDefaultOptions().ManifestFile,
|
||||
Name: name,
|
||||
Namespace: namespace,
|
||||
URL: url,
|
||||
Branch: branch,
|
||||
Interval: interval,
|
||||
TargetPath: targetPath,
|
||||
ManifestFile: sync.MakeDefaultOptions().ManifestFile,
|
||||
GitImplementation: sync.MakeDefaultOptions().GitImplementation,
|
||||
}
|
||||
|
||||
manifest, err := sync.Generate(opts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue