Skip to content

Commit d6b2e94

Browse files
committed
add comment
1 parent 8f012c6 commit d6b2e94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/templatex/functions.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ func makeFuncLookup(c client.Client, ignoreNotFound bool) func(string, string, s
157157
object.SetAPIVersion(apiVersion)
158158
object.SetKind(kind)
159159
if err := c.Get(context.Background(), apitypes.NamespacedName{Namespace: namespace, Name: name}, object); err != nil {
160+
// TODO: should apimeta.IsNoMatchError be ignored as well?
160161
if apierrors.IsNotFound(err) && ignoreNotFound {
161162
err = nil
162163
}

0 commit comments

Comments
 (0)