Skip to content

Commit

Permalink
bug: avoid failing when not finding status expressions
Browse files Browse the repository at this point in the history
The status paths might not have been written at the time of first n executions
and should only be retried on new reconcile attempts.
  • Loading branch information
aslakknutsen committed Sep 4, 2024
1 parent 5915fa2 commit abdfb26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/spi/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit abdfb26

Please sign in to comment.