Skip to content

Commit

Permalink
Instruct kyaml/kio to retain sequence indentation style
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgb committed May 24, 2022
1 parent 4a64452 commit f73e599
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/update/filereader.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ func (r *ScreeningLocalReader) Read() ([]*yaml.RNode, error) {

tracelog.Info("reading file", "path", path)
rdr := &kio.ByteReader{
Reader: bytes.NewBuffer(filebytes),
SetAnnotations: annotations,
Reader: bytes.NewBuffer(filebytes),
SetAnnotations: annotations,
PreserveSeqIndent: true,
}

nodes, err := rdr.Read()
Expand Down

0 comments on commit f73e599

Please sign in to comment.