From 87c98ea20a05457ea84ce7d52ba6595c934d3477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Dudr?= Date: Fri, 13 Mar 2026 21:31:11 +0100 Subject: [PATCH] fix: skip null output documents MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise function panics and crashes. Signed-off-by: VladimĂ­r Dudr --- pkg/resource/res.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/resource/res.go b/pkg/resource/res.go index 8517964..f35b1cb 100644 --- a/pkg/resource/res.go +++ b/pkg/resource/res.go @@ -142,6 +142,10 @@ func DataResourcesFromYaml(in []byte) (result []unstructured.Unstructured, err e return nil, err } + if normalizedData == nil { + continue + } + result = append(result, unstructured.Unstructured{ Object: normalizedData.(map[string]interface{}), })