mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Print message if subst doesn't match any field value
This commit is contained in:
@@ -78,7 +78,8 @@ func (c SetterCreator) Create(openAPIPath, resourcesPath string) error {
|
||||
Outputs: []kio.Writer{inout},
|
||||
}.Execute()
|
||||
if a.Count == 0 {
|
||||
fmt.Printf("setter %s doesn't match any field in resources, but creating setter definition\n", c.Name)
|
||||
fmt.Printf("setter %s doesn't match any field in resource configs, "+
|
||||
"but creating setter definition\n", c.Name)
|
||||
}
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user