From abdfb265127901cc51d84e37ae8b8604a338e56a Mon Sep 17 00:00:00 2001 From: Aslak Knutsen Date: Wed, 4 Sep 2024 14:40:31 +0200 Subject: [PATCH] bug: avoid failing when not finding status expressions The status paths might not have been written at the time of first n executions and should only be retried on new reconcile attempts. --- pkg/spi/types.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/spi/types.go b/pkg/spi/types.go index 0f118a0..ae2d8c0 100644 --- a/pkg/spi/types.go +++ b/pkg/spi/types.go @@ -105,7 +105,8 @@ func NewPathExpressionExtractor(paths []string) HostExtractor { return foundHosts, nil } - return nil, fmt.Errorf("neither string nor slice of strings found at path %v", splitPath) + // TODO: Nothing found yet, move on no error? + return []string{}, nil } return func(target *unstructured.Unstructured) ([]string, error) {