Skip to content

Commit

Permalink
Load readiness from RunFunctionRequest
Browse files Browse the repository at this point in the history
Signed-off-by: Nic Cope <[email protected]>
  • Loading branch information
negz committed Sep 18, 2023
1 parent b845107 commit 073167e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions request/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ func GetDesiredComposedResources(req *v1beta1.RunFunctionRequest) (map[resource.
if err := resource.AsObject(r.GetResource(), dcd.Resource); err != nil {
return nil, err
}
switch r.Ready {
case v1beta1.Ready_READY_UNSPECIFIED:
dcd.Ready = resource.ReadyUnspecified
case v1beta1.Ready_READY_TRUE:
dcd.Ready = resource.ReadyTrue
case v1beta1.Ready_READY_FALSE:
dcd.Ready = resource.ReadyFalse
}
dcds[resource.Name(name)] = dcd
}
return dcds, nil
Expand Down

0 comments on commit 073167e

Please sign in to comment.