mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 01:50:55 +00:00
Don't swallow error in SM patch and use new RNode Map method.
This commit is contained in:
@@ -423,9 +423,12 @@ func (r *Resource) ApplySmPatch(patch *Resource) error {
|
||||
return err
|
||||
}
|
||||
n, ns := r.GetName(), r.GetNamespace()
|
||||
r.ApplyFilter(patchstrategicmerge.Filter{
|
||||
err = r.ApplyFilter(patchstrategicmerge.Filter{
|
||||
Patch: node,
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if !r.IsEmpty() {
|
||||
r.SetName(n)
|
||||
r.SetNamespace(ns)
|
||||
|
||||
Reference in New Issue
Block a user