We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1538c5 commit 279826fCopy full SHA for 279826f
pkg/patch/transformer/util.go
@@ -18,7 +18,6 @@ package transformer
18
19
import (
20
"fmt"
21
- "log"
22
23
"sigs.k8s.io/kustomize/pkg/resmap"
24
"sigs.k8s.io/kustomize/pkg/resource"
@@ -37,8 +36,7 @@ func findTargetObj(m resmap.ResMap, targetId resource.ResId) (*resource.Resource
37
36
}
38
39
if len(matchedIds) == 0 {
40
- log.Printf("Couldn't find any object to apply the json patch %v, skipping it.", targetId)
41
- return nil, nil
+ return nil, fmt.Errorf("couldn't find any object to apply the json patch %v", targetId)
42
43
if len(matchedIds) > 1 {
44
return nil, fmt.Errorf("found multiple objects that the patch can apply %v", matchedIds)
0 commit comments