Fixing issue

This commit is contained in:
jdesouza
2025-04-21 16:00:05 -03:00
parent 356ae86c1a
commit d4b595cc49
2 changed files with 0 additions and 3 deletions

View File

@@ -161,8 +161,6 @@ func createPathAndFindNodes(node *yaml.Node, selectors []string, create bool) ([
node.Value = ""
case yaml.SequenceNode:
return nil, errors.Errorf("parent node is array, use /*/ or /0/../%v/ instead of .%v to access its item(s) first", len(node.Content)-1, currentSelector)
break
default:
return nil, errors.Errorf("parent node is of unknown kind %v", node.Kind)
}

View File

@@ -64,7 +64,6 @@ func (m *Mutator) mutate(req admission.Request) ([]jsonpatch.Operation, error) {
logrus.Errorf("Failed to convert JSON to YAML: %v", err)
return nil, err
}
mutatedYamlStr, err := mutation.ApplyAllMutations(string(originalYaml), patches)
if err != nil {
logrus.Errorf("Failed to apply mutations: %v", err)