Skip to content

Commit

Permalink
Fixed failing tests
Browse files Browse the repository at this point in the history
Co-authored-by: sarjamil <sjamil@salesforce.com>
  • Loading branch information
annelau21 and sarjamil committed Apr 19, 2022
1 parent 4036f2c commit 540adc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/filters/replacement/replacement.go
Expand Up @@ -6,13 +6,13 @@ package replacement
import (
"errors"
"fmt"
utils2 "sigs.k8s.io/kustomize/kyaml/utils"
"strings"

"sigs.k8s.io/kustomize/api/internal/utils"
"sigs.k8s.io/kustomize/api/resource"
"sigs.k8s.io/kustomize/api/types"
"sigs.k8s.io/kustomize/kyaml/resid"
kyaml_utils "sigs.k8s.io/kustomize/kyaml/utils"
"sigs.k8s.io/kustomize/kyaml/yaml"
)

Expand Down Expand Up @@ -115,7 +115,7 @@ func rejectId(rejects []*types.Selector, id *resid.ResId) bool {

func applyToNode(node *yaml.RNode, value *yaml.RNode, target *types.TargetSelector) error {
for _, fp := range target.FieldPaths {
fieldPath := utils2.SmarterPathSplitter(fp, ".")
fieldPath := kyaml_utils.SmarterPathSplitter(fp, ".")
var t *yaml.RNode
var err error
if target.Options != nil && target.Options.Create {
Expand Down Expand Up @@ -200,7 +200,7 @@ func getReplacement(nodes []*yaml.RNode, r *types.Replacement) (*yaml.RNode, err
if r.Source.FieldPath == "" {
r.Source.FieldPath = types.DefaultReplacementFieldPath
}
fieldPath := utils2.SmarterPathSplitter(r.Source.FieldPath, ".")
fieldPath := kyaml_utils.SmarterPathSplitter(r.Source.FieldPath, ".")

rn, err := source.Pipe(yaml.Lookup(fieldPath...))
if err != nil {
Expand Down

0 comments on commit 540adc7

Please sign in to comment.