mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 09:24:23 +00:00
Use mount flag to pass storage mounts to functions
This commit is contained in:
@@ -141,13 +141,13 @@ func TestRunFns_Execute__initDefault(t *testing.T) {
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "explicit directories in volumes",
|
||||
instance: RunFns{Volumes: []string{"vol"}},
|
||||
name: "explicit directories in mounts",
|
||||
instance: RunFns{StorageMounts: []filters.StorageMount{{MountType: "volume", Src: "myvol", DstPath: "/local/"}}},
|
||||
expected: RunFns{
|
||||
Output: os.Stdout,
|
||||
Input: os.Stdin,
|
||||
NoFunctionsFromInput: getFalse(),
|
||||
Volumes: []string{"vol"},
|
||||
StorageMounts: []filters.StorageMount{{MountType: "volume", Src: "myvol", DstPath: "/local/"}},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user