mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
Merge pull request #3792 from monopole/nits
Fix nits, add internal GetRoot func.
This commit is contained in:
@@ -83,6 +83,10 @@ func makeBaseEnhancedHarness(t *testing.T) *HarnessEnhanced {
|
||||
filesys.MakeFsOnDisk())}
|
||||
}
|
||||
|
||||
func (th *HarnessEnhanced) GetRoot() string {
|
||||
return th.ldr.Root()
|
||||
}
|
||||
|
||||
func (th *HarnessEnhanced) Reset() {
|
||||
if th.shouldWipeLdrRoot {
|
||||
if !strings.HasPrefix(th.ldr.Root(), os.TempDir()) {
|
||||
|
||||
Reference in New Issue
Block a user