Skip to content

Commit

Permalink
refactor(fn): mark ready if more resources than expected are ready
Browse files Browse the repository at this point in the history
  • Loading branch information
bobh66 committed Jan 31, 2025
1 parent fe58a45 commit 59e0522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fn.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (f *Function) RunFunction(_ context.Context, req *fnv1.RunFunctionRequest)
response.Fatal(rsp, errors.Wrapf(err, "cannot set desired composite resource in %T", rsp))
return rsp, nil
}
if *in.ExpectedResourceCount == r && r == len(desired) {
if *in.ExpectedResourceCount <= r && r == len(desired) {
rsp.GetDesired().GetComposite().Ready = fnv1.Ready_READY_TRUE
} else {
rsp.GetDesired().GetComposite().Ready = fnv1.Ready_READY_FALSE
Expand Down

0 comments on commit 59e0522

Please sign in to comment.