mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-14 02:20:53 +00:00
fix lint error
This commit is contained in:
@@ -7,8 +7,6 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"errors"
|
|
||||||
|
|
||||||
"sigs.k8s.io/kustomize/api/internal/utils"
|
"sigs.k8s.io/kustomize/api/internal/utils"
|
||||||
"sigs.k8s.io/kustomize/api/resource"
|
"sigs.k8s.io/kustomize/api/resource"
|
||||||
"sigs.k8s.io/kustomize/api/types"
|
"sigs.k8s.io/kustomize/api/types"
|
||||||
@@ -124,7 +122,7 @@ func applyToNode(node *yaml.RNode, value *yaml.RNode, target *types.TargetSelect
|
|||||||
// So, if create option is set, we fallback to PathGetter.
|
// So, if create option is set, we fallback to PathGetter.
|
||||||
for _, f := range fieldPath {
|
for _, f := range fieldPath {
|
||||||
if f == "*" {
|
if f == "*" {
|
||||||
return errors.New("cannot support create option in a multi-value target")
|
return fmt.Errorf("cannot support create option in a multi-value target")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
t, err = node.Pipe(yaml.LookupCreate(value.YNode().Kind, fieldPath...))
|
t, err = node.Pipe(yaml.LookupCreate(value.YNode().Kind, fieldPath...))
|
||||||
|
|||||||
Reference in New Issue
Block a user