fix affected kyaml tests

This commit is contained in:
Natasha Sarkar
2021-06-30 10:05:23 -07:00
committed by Katrina Verey
parent 4b66043735
commit 3ab0665c19
18 changed files with 19 additions and 33 deletions

View File

@@ -53,7 +53,6 @@ var _ Writer = ByteWriter{}
func (w ByteWriter) Write(inputNodes []*yaml.RNode) error {
// Copy the nodes to prevent writer from mutating the original nodes.
nodes := copyRNodes(inputNodes)
yaml.DoSerializationHacksOnNodes(nodes)
if w.Sort {
if err := kioutil.SortNodes(nodes); err != nil {
return errors.Wrap(err)