-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Load(), New(), Root(), Dst() for LocLoader
- Loading branch information
1 parent
fd4add7
commit 75905b6
Showing
3 changed files
with
418 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()) | ||
} | ||
} |
Oops, something went wrong.