From 5c1e11e6c9349d796fafd9832d5314e2480359cb Mon Sep 17 00:00:00 2001 From: Zach Taylor Date: Wed, 3 Nov 2021 16:37:20 -0400 Subject: [PATCH] bugfix: operator tools expect yaml with 2 spaces --- pkg/pullspec/pullspec.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/pullspec/pullspec.go b/pkg/pullspec/pullspec.go index 31607f2..fac8ac0 100644 --- a/pkg/pullspec/pullspec.go +++ b/pkg/pullspec/pullspec.go @@ -377,8 +377,9 @@ func (csv *OperatorCSV) ToYaml() ([]byte, error) { buff := bytes.Buffer{} enc := yamlv3.NewEncoder(&buff) - err := enc.Encode(&csv.data.Object) + enc.SetIndent(2) + err := enc.Encode(&csv.data.Object) if err != nil { return nil, err }