1
0
mirror of synced 2026-02-13 13:06:56 +00:00

Normalize paths to forward slashes

Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
Hidde Beydals
2021-04-08 16:38:37 +02:00
parent 5a67f94380
commit e0dd12505f
5 changed files with 12 additions and 8 deletions

View File

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