Skip to content

Commit

Permalink
Implement Load(), New(), Root(), Dst() for LocLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
annasong20 committed Aug 2, 2022
1 parent fd4add7 commit 75905b6
Show file tree
Hide file tree
Showing 3 changed files with 418 additions and 109 deletions.
17 changes: 17 additions & 0 deletions api/internal/localizer/localizer.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0

package localizer

import (
"log"

"sigs.k8s.io/kustomize/kyaml/errors"
"sigs.k8s.io/kustomize/kyaml/filesys"
)

func cleanDst(newDir string, fSys filesys.FileSystem) {
if err := fSys.RemoveAll(newDir); err != nil {
log.Printf("%s", errors.WrapPrefixf(err, "unable to clean localize destination").Error())
}
}
Loading

0 comments on commit 75905b6

Please sign in to comment.