1
0
mirror of synced 2026-03-14 15:36:56 +00:00

Merge pull request #1022 from fluxcd/create-kustomization-path-fix

Use path with '/' slashes in created Kustomization
This commit is contained in:
Hidde Beydals
2021-03-02 11:35:35 +01:00
committed by GitHub

View File

@@ -19,6 +19,7 @@ package main
import (
"context"
"fmt"
"path/filepath"
"strings"
"time"
@@ -142,7 +143,7 @@ func createKsCmdRun(cmd *cobra.Command, args []string) error {
Interval: metav1.Duration{
Duration: createArgs.interval,
},
Path: kustomizationArgs.path.String(),
Path: filepath.ToSlash(kustomizationArgs.path.String()),
Prune: kustomizationArgs.prune,
SourceRef: kustomizev1.CrossNamespaceSourceReference{
Kind: kustomizationArgs.source.Kind,