Skip to content

Commit e55339c

Browse files
authored
Merge pull request #366 from erikgb/retain-seq-indent
Instruct kyaml/kio to retain sequence indentation style
2 parents 4a64452 + 0640855 commit e55339c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/update/filereader.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ func (r *ScreeningLocalReader) Read() ([]*yaml.RNode, error) {
118118

119119
tracelog.Info("reading file", "path", path)
120120
rdr := &kio.ByteReader{
121-
Reader: bytes.NewBuffer(filebytes),
122-
SetAnnotations: annotations,
121+
Reader: bytes.NewBuffer(filebytes),
122+
SetAnnotations: annotations,
123+
PreserveSeqIndent: true,
123124
}
124125

125126
nodes, err := rdr.Read()

0 commit comments

Comments
 (0)