Instruct kyaml/kio to retain sequence indentation style

Signed-off-by: Erik Godding Boye <egboye@gmail.com>
This commit is contained in:
Erik Godding Boye 2022-05-24 20:51:23 +02:00 committed by Erik Godding Boye
parent 4a6445247b
commit 06408559f1
1 changed files with 3 additions and 2 deletions

View File

@ -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()