mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +00:00
Fix 'config run' by removing default mount.
In, pull #1822 mount logic was refactored where the default mount using zero-value no longer makes sense and leads to this failure: "invalid argument "type=,src=,dst=:ro" for "--mount" flag: type is required" I think the intent here was to remove default mount.
This commit is contained in:
@@ -92,8 +92,6 @@ func (r *RunFns) init() {
|
||||
// if containerFilterProvider hasn't been set, use the default
|
||||
if r.containerFilterProvider == nil {
|
||||
r.containerFilterProvider = func(image, path string, api *yaml.RNode) kio.Filter {
|
||||
defaultMount := filters.StorageMount{}
|
||||
r.StorageMounts = append(r.StorageMounts, defaultMount)
|
||||
cf := &filters.ContainerFilter{Image: image, Config: api, StorageMounts: r.StorageMounts}
|
||||
return cf
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user